strange errors with npm install

34 views
Skip to first unread message

Suk Khoi

unread,
Feb 4, 2015, 12:55:28 AM2/4/15
to nod...@googlegroups.com
iam using windows and using node.0.10.36

when i run this command prompt as admin with my project directory
e:\jobdhundo\ npm install -g yo

nothing gets installed in the project directory

when i do this this
npm install --global yo bower grunt-cli generator-angular

still nothing gets installed in the project directory

but when i do this
npm install --gloabl yo bower grunt-cli generator-angular

global spelling is wrong, but it gets installed, but sometimes error occurs and i reinstall it fixes

where am i doing wrong

Ryan Graham

unread,
Feb 4, 2015, 1:10:40 AM2/4/15
to nod...@googlegroups.com
-g/--global means install it globally, not in the project directory. I don't know what sort of errors you are seeing, but you are most certainly seeing warnings about those packages preferring to be installed globally. The second time you install them may be skipping the warning since they are already installed from the first time.

~Ryan

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/3b7ece49-d404-4d5c-85d2-9dfeeb525b61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages