node.js 无法在 Windows 8 上启动 npm(错误:ENOENT,stat 'C:\Users\User\AppData\Roaming\npm')
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25103499/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't start npm on Windows 8 (Error: ENOENT, stat 'C:\Users\User\AppData\Roaming\npm')
提问by EternallyCurious
I just installed Nodejs on my new computer with Windows 8. I can't get npm to work on it. Although the node server starts fine:
我刚刚在装有 Windows 8 的新计算机上安装了 Nodejs。我无法使用 npm 来处理它。虽然节点服务器启动正常:
Here's the error:
这是错误:
C:\Users\User\Documents\Source\Project>npm install
Error: ENOENT, stat 'C:\Users\User\AppData\Roaming\npm'
C:\Users\User\Documents\Source\Project>npm start
Error: ENOENT, stat 'C:\Users\User\AppData\Roaming\npm'
C:\Users\User\Documents\Source\Project>
采纳答案by Mehedi_Sharif
Latest version is not compatible with windows 8. Just download this files and it works in my windows 8 perfectly. http://blog.nodejs.org/2014/06/16/node-v0-10-29-stable/
最新版本与 Windows 8 不兼容。只需下载此文件,它就可以在我的 Windows 8 中完美运行。 http://blog.nodejs.org/2014/06/16/node-v0-10-29-stable/
回答by user3905455
you can try to create 'C:\Users\User\AppData\Roaming\npm' folder.
您可以尝试创建“C:\Users\User\AppData\Roaming\npm”文件夹。

