joelcarranza / particular-pinboard

An enhanced pinboard bookmarklet for the persnickety
372 stars 33 forks source link

Installing uglify-js on Mavericks needs -g #9

Open fspinillo opened 10 years ago

fspinillo commented 10 years ago

I know there was a previous issue with Mavericks, but I wanted to mention your suggestion of using -g is what made it work. When typing in '''npm install uglify-js''' I was still be presented with an error that uglifyjs was not installed. Appending the -g to end of the install allowed the script to run properly. Because of the output of the error it was hard to find the reasoning, as I was trying to fix it by exporting paths in my bash profile. It may be worth updating the readme to include a note about using -g if someone runs into errors.

matthewmcvickar commented 10 years ago

@fspinillo You don't need to install it globally if you install in the same directory that the build process will be run.

That is:

unconsidered commented 9 years ago

Ran into this issue in Yosemite. Using np install uglify-js while in the Particular Pinboard directory did not create a _nodemodules directory. I had to resort to np install uglify-js -g to successfully install Particular Pinboard.