0

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.

1 Answer 1

1

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!

Sign up to request clarification or add additional context in comments.

3 Comments

Thank you so much, it was so easy. I wasted a whole day.
But its working for current session only.Is there any way to set for future?.
@Animay Check out my updated answer and follow those steps.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.