利用yo electron-naive构建后 npm run dev 报错.

发布于 2022-09-04 11:54:38 字数 3290 浏览 9 评论 0

0 info it worked if it ends with ok 1 verbose cli [ 'D:\Program
Files\nodejs\node.exe', 1 verbose cli
'C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run', 1 verbose cli 'dev' ] 2 info using npm@4.1.2
3 info using node@v6.9.4 4 verbose run-script [ 'predev', 'dev',
'postdev' ] 5 info lifecycle TODO@1.0.0~predev: TODO@1.0.0 6 silly
lifecycle TODO@1.0.0~predev: no script for predev, continuing 7 info
lifecycle TODO@1.0.0~dev: TODO@1.0.0 8 verbose lifecycle
TODO@1.0.0~dev: unsafe-perm in lifecycle true 9 verbose lifecycle
TODO@1.0.0~dev: PATH:
C:UsersAdministratorAppDataRoamingnpmnode_modulesnpmbinnode-gyp-bin;D:appsTODOTODOnode_modules.bin;C:ProgramDataOracleJavajavapath;C:windowssystem32;C:windows;C:windowsSystem32Wbem;C:windowsSystem32WindowsPowerShellv1.0;D:Program
Filesnodejs;E:WFLProgram
FilesJavajdk1.7.0bin;C:UsersAdministratorAppDataRoamingnpm;D:Program
FilesMicrosoft VS Codebin 10 verbose lifecycle TODO@1.0.0~dev: CWD:
D:appsTODOTODO 11 silly lifecycle TODO@1.0.0~dev: Args: [ '/d /s
/c', 'node ./node_modules/.bin/gulp dev' ] 12 silly lifecycle
TODO@1.0.0~dev: Returned: code: 1 signal: null 13 info lifecycle
TODO@1.0.0~dev: Failed to exec dev script 14 verbose stack Error:
TODO@1.0.0 dev: node ./node_modules/.bin/gulp dev 14 verbose stack
Exit status 1 14 verbose stack at EventEmitter.<anonymous>
(C:UsersAdministratorAppDataRoamingnpmnode_modulesnpmlibutilslifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:106:13) 14 verbose stack
at EventEmitter.emit (events.js:191:7) 14 verbose stack at
ChildProcess.<anonymous>
(C:UsersAdministratorAppDataRoamingnpmnode_modulesnpmlibutilsspawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13) 14 verbose stack
at ChildProcess.emit (events.js:191:7) 14 verbose stack at
maybeClose (internal/child_process.js:877:16) 14 verbose stack at
Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid TODO@1.0.0 16 verbose cwd D:appsTODOTODO 17 error
Windows_NT 10.0.10586 18 error argv "D:\Program
Files\nodejs\node.exe"
"C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js"
"run" "dev" 19 error node v6.9.4 20 error npm v4.1.2 21 error code
ELIFECYCLE 22 error TODO@1.0.0 dev: `node ./node_modules/.bin/gulp
dev` 22 error Exit status 1 23 error Failed at the TODO@1.0.0 dev
script 'node ./node_modules/.bin/gulp dev'. 23 error Make sure you
have the latest version of node.js and npm installed. 23 error If you
do, this is most likely a problem with the TODO package, 23 error not
with npm itself. 23 error Tell the author that this fails on your
system: 23 error node ./node_modules/.bin/gulp dev 23 error You
can get information on how to open an issue for this project with: 23
error npm bugs TODO 23 error Or if that isn't available, you can
get their info via: 23 error npm owner ls TODO 23 error There is
likely additional logging output above. 24 verbose exit [ 1, true ]


**在yo electron-naive创建包后
执行npm run dev 报错
npm版本4.1.2
node版本6.9.4**
在线等

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文