Open fspinillo opened 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:
npm install -g uglify-js
), it will be installed to /usr/local/bin/uglifyjs
and be available anywhere on your system that you try to run it.cd
into its directory, and do npm install uglify-js
there, a _nodemodules/ directory containing UglifyJS will be created and can be used in the Particular Pinboard build process while in the particular-pinboard/ directory.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.
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.