npm i 无报错,执行到 $ npm run assets,报错,其中图片的路径 有个C: 截图:
日志:
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 npm@5.6.0
3 info using node@v10.0.0
4 verbose run-script [ ‘preassets’, ‘assets’, ‘postassets’ ]
5 info lifecycle bbs@1.0.0~preassets: bbs@1.0.0
6 info lifecycle bbs@1.0.0~assets: bbs@1.0.0
7 verbose lifecycle bbs@1.0.0~assets: unsafe-perm in lifecycle true
8 verbose lifecycle bbs@1.0.0~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 bbs@1.0.0~assets: CWD: C:\GitHub\bbs
10 silly lifecycle bbs@1.0.0~assets: Args: [ ‘/d /s /c’, ‘loader app/view app/’ ]
11 silly lifecycle bbs@1.0.0~assets: Returned: code: 1 signal: null
12 info lifecycle bbs@1.0.0~assets: Failed to exec assets script
13 verbose stack Error: bbs@1.0.0 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 bbs@1.0.0
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 bbs@1.0.0 assets: loader app/view app/
22 error Exit status 1
23 error Failed at the bbs@1.0.0 assets script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
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@5.6.0
3 info using node@v10.0.0
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle cnode@1.0.0~prestart: cnode@1.0.0
6 info lifecycle cnode@1.0.0~start: cnode@1.0.0
7 verbose lifecycle cnode@1.0.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle cnode@1.0.0~start: 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 cnode@1.0.0~start: CWD: c:\GitHub\bbs
10 silly lifecycle cnode@1.0.0~start: Args: [ ‘/d /s /c’,
10 silly lifecycle ‘egg-scripts start --daemon --title=egg-server-cnode’ ]
11 silly lifecycle cnode@1.0.0~start: Returned: code: 1 signal: null
12 info lifecycle cnode@1.0.0~start: Failed to exec start script
13 verbose stack Error: cnode@1.0.0 start: egg-scripts start --daemon --title=egg-server-cnode
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 cnode@1.0.0
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” "start"
18 verbose node v10.0.0
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error cnode@1.0.0 start: egg-scripts start --daemon --title=egg-server-cnode
22 error Exit status 1
23 error Failed at the cnode@1.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
解决没有
没有,windows下莫名奇妙,大家也都不在windows下整