Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Install node.js dependencies: fails #5811

Closed
darkoverlordofdata opened this issue Jan 15, 2014 · 1 comment
Closed

Install node.js dependencies: fails #5811

darkoverlordofdata opened this issue Jan 15, 2014 · 1 comment

Comments

@darkoverlordofdata
Copy link
Contributor

I'm following the install instructions at http://docs.angularjs.org/misc/contribute, and this step fails:

Install node.js dependencies:

npm install

I get this message in the log:
Please try running this command again as root/Administrator.

this requires
sudo npm install

More info...
After installing as root, I was getting other errors, when running grunt webserver, and grunt test:unit.

I uninstalled everyhing.
Then I installed gunt, and after a few go-rounds, I discovered that I needed to install bower also:

sudo npm install -g grunt-cli
sudo npm install -g bower

After installing these two dependencies, the unprivileged npm install succeeded, as well as the webserver and test suite.

@darkoverlordofdata
Copy link
Contributor Author

I believe the resolution is to update the installation doc to include these 2 steps

sudo npm install -g grunt-cli
sudo npm install -g bower

prior to

Install node.js dependencies:

npm install

Thanks,
Bruce

caitp pushed a commit that referenced this issue Jan 17, 2014
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Jan 27, 2014
jamesdaily pushed a commit to jamesdaily/angular.js that referenced this issue Jan 27, 2014
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

1 participant