Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Installing uglify-js on Mavericks needs -g #9

Open
fspinillo opened this issue May 29, 2014 · 2 comments
Open

Installing uglify-js on Mavericks needs -g #9

fspinillo opened this issue May 29, 2014 · 2 comments

Comments

@fspinillo
Copy link

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
Copy link
Contributor

@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:

  • If you install UglifyJS globally (via 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.
  • If you download Particular Pinboard, cd into its directory, and do npm install uglify-js there, a node_modules/ directory containing UglifyJS will be created and can be used in the Particular Pinboard build process while in the particular-pinboard/ directory.

@unconsidered
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants