在npm start上需要帮助:'serve'生成错误 - 代码ELIFECYCLE

时间:2017-04-07 12:15:20

标签: google-analytics npm

当我尝试在本地托管Google Analytics的演示网站时,我遇到了错误。(https://github.com/googleanalytics/ga-dev-tools

请帮忙。非常感谢。

我绝对没有编程/开发背景(第一次使用Github),经过几个小时的努力,我终于完成了最后一步,但仍然无法自己托管网站。

尝试将npm和node.js版本更新为最新版但仍然无法正常工作。在命令提示符下看到的第一行错误是:

Starting 'serve'...
'serve' errored after 6.62ms
Error: spawn UNKNOWN

寻找解决方案。日志如下:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start' ]
2 info using npm@4.2.0
3 info using node@v7.8.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle ga-dev-tools@~prestart: ga-dev-tools@
6 silly lifecycle ga-dev-tools@~prestart: no script for prestart, continuing
7 info lifecycle ga-dev-tools@~start: ga-dev-tools@
8 verbose lifecycle ga-dev-tools@~start: unsafe-perm in lifecycle true
9 verbose lifecycle ga-dev-tools@~start: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;c:\GitHub\ga-dev-tools\node_modules.bin;c:\program files\graphicsmagick-1.3.25-q16;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Google\Cloud SDK\google-cloud-sdk.install.backup\platform\bundledpython\Scripts;C:\Program Files\GraphicsMagick-1.3.25-Q16;C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin;C:\Users\Administrator\AppData\Local\GitHub;C:\Program Files\Git\cmd;C:\Program Files\Git;C:\Program Files\nodejs;;C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin;C:\Users\Administrator\AppData\Roaming\npm
10 verbose lifecycle ga-dev-tools@~start: CWD: c:\GitHub\ga-dev-tools
11 silly lifecycle ga-dev-tools@~start: Args: [ '/d /s /c', 'gulp watch' ]
12 silly lifecycle ga-dev-tools@~start: Returned: code: 1 signal: null
13 info lifecycle ga-dev-tools@~start: Failed to exec start script
14 verbose stack Error: ga-dev-tools@ start: gulp watch
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:194:7)
14 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:194:7)
14 verbose stack at maybeClose (internal/child_process.js:899:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid ga-dev-tools@
16 verbose cwd c:\GitHub\ga-dev-tools
17 error Windows_NT 6.1.7601
18 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
19 error node v7.8.0
20 error npm v4.2.0
21 error code ELIFECYCLE
22 error errno 1
23 error ga-dev-tools@ start: gulp watch
23 error Exit status 1
24 error Failed at the ga-dev-tools@ start script 'gulp watch'.
24 error Make sure you have the latest version of node.js and npm installed.
24 error If you do, this is most likely a problem with the ga-dev-tools package,
24 error not with npm itself.
24 error Tell the author that this fails on your system:
24 error gulp watch
24 error You can get information on how to open an issue for this project with:
24 error npm bugs ga-dev-tools
24 error Or if that isn't available, you can get their info via:
24 error npm owner ls ga-dev-tools
24 error There is likely additional logging output above.
25 verbose exit [ 1, true ]

0 个答案:

没有答案