npm start 报错 记日志分析 npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ 'D:\\nodejs\\node.exe',
1 verbose cli 'D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 verbose unsafe-perm in lifecycle true
7 info start [email protected]
8 verbose unsafe-perm in lifecycle true
9 info [email protected] Failed to exec start script
10 verbose stack Error: [email protected] start: `npm run build && npm-run-all --parallel server watch:**`
10 verbose stack Exit status 1
10 verbose stack at EventEmitter.<anonymous> (D:\nodejs\node_modules\npm\lib\utils\lifecycle.js:214:16)
10 verbose stack at emitTwo (events.js:87:13)
10 verbose stack at EventEmitter.emit (events.js:172:7)
10 verbose stack at ChildProcess.<anonymous> (D:\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
10 verbose stack at emitTwo (events.js:87:13)
10 verbose stack at ChildProcess.emit (events.js:172:7)
10 verbose stack at maybeClose (internal/child_process.js:817:16)
10 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
11 verbose pkgid [email protected]
12 verbose cwd E:\zan\www\panli\login-panli-demo
13 error Windows_NT 6.1.7601
14 error argv "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
15 error node v4.0.0
16 error npm v2.14.2
17 error code ELIFECYCLE
18 error [email protected] start: `npm run build && npm-run-all --parallel server watch:**`
18 error Exit status 1
19 error Failed at the [email protected] start script 'npm run build && npm-run-all --parallel server watch:**'.
19 error This is most likely a problem with the login-panli-demo package,
19 error not with npm itself.
19 error Tell the author that this fails on your system:
19 error npm run build && npm-run-all --parallel server watch:**
19 error You can get their info via:
19 error npm owner ls login-panli-demo
19 error There is likely additional logging output above.
20 verbose exit [ 1, true ]
npm-debug.log 错误如上;
"scripts": {
"build": "npm-run-all build:**",
"start": "npm run build && npm-run-all --parallel server watch:**",
"test": "karma start",
"test:coverage": "KARMA_ENV=coverage karma start --reporters coverage,coveralls",
"test:lint": "eslint src/**/*.js*",
"watch:test": "karma start --no-single-run --browsers Chrome",
"pretest": "npm run test:lint",
"prebuild": "rimraf www && mkdirp www",
"prestart": "npm run prebuild",
"build:static": "cpx \"examples/static/**/*\" www",
"watch:static": "npm run build:static -- -w",
"build:js": "webpack",
"watch:js": "npm run build:js -- --watch",
"build:css": "npm run watch:css -- --no-watch",
"watch:css": "autoless --source-map examples www",
"build:dist": "babel src --out-dir dist",
"watch:dist": "npm run build:dist --- --watch",
"server": "live-server ./ --port=4240"
},
配置环境如上
吡哩吡哩娘好萌
9 years, 2 months ago
Answers
看起来是 [email protected] 的问题,你可以去github主页上看看是否有相关issues。另外,log中并没有关于这个的 详细 信息。
19 error Failed at the [email protected] start script 'npm run build && npm-run-all --parallel server watch:**'.
19 error This is most likely a problem with the login-panli-demo package,
19 error not with npm itself.
19 error Tell the author that this fails on your system:
19 error npm run build && npm-run-all --parallel server watch:**
19 error You can get their info via:
19 error npm owner ls login-panli-demo
19 error There is likely additional logging output above.
汐风的幻想
answered 9 years, 2 months ago