安装发电机基石后:
$npm install -g generator-keystone
和yeoman生成器:
$npm install -g yo
我正在运行发电机:
$yo keystone.
在回答问题并完成发电机的工作后,我收到以下错误:
97375 verbose stack Error: v8-debug@0.4.6 install: `node-pre-gyp install --fallback-to-build`
97375 verbose stack Exit status 1
97375 verbose stack at EventEmitter.<anonymous> (C:Program Filesnodejsnode_modulesnpmlibutilslifecycle.js:232:16)
97375 verbose stack at emitTwo (events.js:87:13)
97375 verbose stack at EventEmitter.emit (events.js:172:7)
97375 verbose stack at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmlibutilsspawn.js:24:14)
97375 verbose stack at emitTwo (events.js:87:13)
97375 verbose stack at ChildProcess.emit (events.js:172:7)
97375 verbose stack at maybeClose (internal/child_process.js:818:16)
97375 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
97376 verbose pkgid v8-debug@0.4.6
97377 verbose cwd d:WorkSamplesWebkeystone_testtest
97378 error Windows_NT 10.0.10240
97379 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
97380 error node v5.3.0
97381 error npm v3.3.12
97382 error code ELIFECYCLE
97383 error v8-debug@0.4.6 install: `node-pre-gyp install --fallback-to-build`
97383 error Exit status 1
97384 error Failed at the v8-debug@0.4.6 install script 'node-pre-gyp install --fallback-to-build'.
97384 error Make sure you have the latest version of node.js and npm installed.
感谢的帮助
您尝试过使用4.*版本的Node吗?
我强烈建议在开发节点应用程序时使用NVM,这样您就可以轻松地在节点版本之间切换。