0

安装 generator-keystone 后:

$npm install -g generator-keystone

和约曼发电机:

$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 Files\nodejs\node_modules\npm\lib\utils\lifecycle.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 Files\nodejs\node_modules\npm\lib\utils\spawn.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:\Work\Samples\Web\keystone_test\test
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

1 回答 1

0

您是否尝试过使用 4.* 版本的 Node?

我强烈建议在开发节点应用程序时使用NVM,以便您可以轻松地在节点版本之间切换。

于 2016-01-07T02:44:33.723 回答