简体   繁体   中英

nodejs- Error: ENOENT, stat when using npm in Windows8

Installed the latest node.js on Windows8. If I type

 npm -version 

in the command console I correctly see

1.4.23

However, whenever I use the install command, regardless of the argument, I get the following error

Error: ENOENT, stat 'C:\Users\foo\AppData\Roaming\npm'

What gives? Could this be a permissions issue or?

您可以在错误中显示的路径中创建一个名称为“ npm”的空文件夹

I had the same problem when I tried to install NPM on my work computer. I believe that there is a problem with the installer. I fixed this problem by installing an older version of NPM.

or you can add the folder npm under AppData/Roaming.

Look at this for more information: node.js and npm for windows

I had the same Problem in Windows 8.1 MSDN-VM.

creating the npm Folder manualy fixed it for me. C:\\Users\\foo\\AppData\\Roaming**npm**

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM