jshint/fixmyjs

zsh: command not found

Closed this issue · 4 comments

I have done the npm install, but when I try to run fixmyjs file.js, I get an error in z shell: zsh: command not found: fixmyjs. Is there a way to fix this so then I can run this to fix my js?

Thank you,

Rob

Did you sudo npm install fixmyjs -g ?

Try finding the file directly. /path/to/node_modules/fixmyjs/bin/fixmyjs this seems like a case of your /usr/bin not pointing in the right place.

Great. The comment on the answer here, where it says SWEET, helped me when I did the rm -r on the tmp/ and .npm/ dirs. After that I did the install again and it works great.

Thank you,

Rob

Awesome, glad to hear. Cheers!

Sorry, mentioned answer here, and did not add link. Here it is for reference for others: http://stackoverflow.com/questions/14803978/npm-global-path-prefix