Windows下部署egg.js版cnodejs执行$ npm run assets报错
发布于 21 小时前 作者 sonong 62 次浏览 来自 问答

npm i 无报错,执行到 $ npm run assets,报错,其中图片的路径 有个C: 截图:bbs.png

日志: 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 ‘run’, 1 verbose cli ‘assets’ ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ ‘preassets’, ‘assets’, ‘postassets’ ] 5 info lifecycle [email protected]~preassets: [email protected] 6 info lifecycle [email protected]~assets: [email protected] 7 verbose lifecycle [email protected]~assets: unsafe-perm in lifecycle true 8 verbose lifecycle [email protected]~assets: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\GitHub\bbs\node_modules.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\QCloud\Monitor\Barad;C:\Program Files\Git\cmd;C:\Go\bin;C:\nssm-2.24\win64;C:\GitHub\gogs;C:\mysql;C:\Program Files\nodejs;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Users\Administrator\AppData\Local\GitHubDesktop\bin;C:\Users\Administrator\AppData\Roaming\npm 9 verbose lifecycle [email protected]~assets: CWD: C:\GitHub\bbs 10 silly lifecycle [email protected]~assets: Args: [ ‘/d /s /c’, ‘loader app/view app/’ ] 11 silly lifecycle [email protected]~assets: Returned: code: 1 signal: null 12 info lifecycle [email protected]~assets: Failed to exec assets script 13 verbose stack Error: [email protected] assets: loader app/view app/ 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16) 13 verbose stack at EventEmitter.emit (events.js:182:13) 13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:182:13) 13 verbose stack at maybeClose (internal/child_process.js:947:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:236:5) 14 verbose pkgid [email protected] 15 verbose cwd C:\GitHub\bbs 16 verbose Windows_NT 6.3.9600 17 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” "assets" 18 verbose node v10.0.0 19 verbose npm v5.6.0 20 error code ELIFECYCLE 21 error errno 1 22 error [email protected] assets: loader app/view app/ 22 error Exit status 1 23 error Failed at the [email protected] assets script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

回到顶部