Animay
Animay

Reputation: 630

NPM not working globally

I am using window 7 and i can not use npm globally. My system is admin protected PC.I can not run as administrator my command prompt. I tried to set path i.e.,

set NODE_PATH %AppData%\npm\node_modules

but it did not work.please help.

Upvotes: 0

Views: 253

Answers (1)

David R
David R

Reputation: 15647

Can you please try setting your PATH variable in your command prompt as given below,

set path=%PATH%;c:\Users\[YOUR_USER_ACCOUNT_DIRECTORY]\AppData\Roaming\npm;

Edit: Yes you can,

Navigate to Control Panel => User Accounts => User Accounts and do the following steps,

Follow the steps

Hope this helps!

Upvotes: 1

Related Questions