Npm after installing node.js on windows 8.1

I have the package installed node-v0.10.31-x64

on my windows 8.1. Then restart your computer. After that, I run the command node --version

on the command line and I get the output v0.10.31

, but when I run the command npm install request cheerio

I get the following error:

error_Scr-shot

What did I do wrong and how can I fix it?

+3


source to share


2 answers


I had the same problem while installing node.js on my Surface Pro 3 (Win 8.1). My solution is the suggestion from pAt and krampstudio; create a folder and make sure the permissions are set.

Steps for Win 8.1:



  • Open "File Explorer" and go to the "Your Users" folder. (For you it will be: C: \ Users \ Mykhaylo Vayvala)
  • Go to the AppData folder. (This is hidden by default. To open View and check the Hidden Items option, it should appear.
  • Go to "Roaming" and create a folder named "npm"
  • Right click on the npm folder and select properties, then uncheck the Read Only checkbox.
  • Click "ok"
  • Open command prompt and now you should be able to run "npm -version"

Hope it helps!

+4


source


Have you tried manually creating the npm folder in this path?



-2


source







All Articles