node.js - Yeoman npm 在 Windows 上安装失败

标签 node.js npm yeoman

我正在尝试使用 npm 在我的 64 位 Windows 10 计算机上安装 Yeoman 生成器。它不断失败并出现以下错误。我以管理员身份运行,并尝试了许多不同的开关组合,甚至正在运行最新版本的 Node (6.2.0)。有什么想法吗?

npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into  npm and is now out of date with respect to npm
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\paulsumm\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "yo"
npm ERR! node v6.2.0
npm ERR! npm  v3.9.0
npm ERR! path C:\Users\paulsumm\AppData\Roaming\npm\node_modules\yo\lib\cli.js
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Users\paulsumm\AppData\Roaming\npm\node_modules\yo\lib\cli.js'
npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Users\paulsumm\AppData\Roaming\npm\node_modules\yo\lib\cli.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

最佳答案

尝试安装以前的版本:

npm install -g yo@1.8.1

关于node.js - Yeoman npm 在 Windows 上安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37304675/

相关文章:

reactjs - react 路由器对等依赖性错误

node.js - 如何部署使用 tgz 文件作为依赖项的 Google Cloud Function?

css - Font Awesome 由于某种原因在 Angular-Fullstack Yeoman Generator 中无法正常工作

angularjs - npm install - Windows 中的 g generator-gulp-angular 错误

javascript - Bower 和依赖开发

javascript - jshint 错误 : Redefinition of '$'

node.js - 回调在 connect-mongo 中不起作用

javascript - 如何使用 sinon 测试 mocha 中的多个回调?

node.js - 云函数 : Resized images not loading

node.js - 通过 node.js 的 npm 安装 gulp 会破坏窗口