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 npm@2.14.2
3 info using node@v4.0.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart login-panli-demo@0.1.0
6 verbose unsafe-perm in lifecycle true
7 info start login-panli-demo@0.1.0
8 verbose unsafe-perm in lifecycle true
9 info login-panli-demo@0.1.0 Failed to exec start script
10 verbose stack Error: login-panli-demo@0.1.0 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 login-panli-demo@0.1.0
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 login-panli-demo@0.1.0 start: `npm run build && npm-run-all --parallel server watch:**`
18 error Exit status 1
19 error Failed at the login-panli-demo@0.1.0 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"
},
配置环境如上
看起来是 login-panli-demo@0.1.0 的问题,你可以去github主页上看看是否有相关issues。另外,log中并没有关于这个的详细信息。
补充于 Apr 1,2017
竟然被踩了一下,看来有童鞋不开心了。
分享一下个人对于技术问题的搜索经验。
Google 搜索 -- 靠近正确的答案
这个属于老生常谈了。不可否认,在搜索技术问题上,Google 要比百度/360/搜狗给力的多,为什么呢?首先,我们的程序大多数建立于 English 世界的各种编程语言之上,他们最初的用户(程序员)一般也就是国外的了。而国外的程序员一般都是用 google这毫无疑问,所以一般最新的问题都会先从国外发现,所以呢,google 会搜到最新最靠谱的解决方案。
技术站点
Google 搜索只是第一步,很多时候,正确答案都会集中到以下两个地方。
stackoverflow
专家
总是能从理论上入手,比如各种业界规范,比如 html5 specification,然后对各种实现加以点评,最后给出一个兼容性的解决方案。这种答案值得珍藏。
高手
熟知各种解决方案,一定的原理描述,一般会搭配线上 demo,比如 jsbin。我也很喜欢这种答案。
熟手
熟知某种可靠的方案,但是一般不会告诉你原理,或者不会,或者不懂。
路人
会告诉你一个曾经试过的方案,不一定好使,有一定的启发作用。
大牛博客
你遇到的问题大牛一般都早趟过去了。。。
除非你浸淫这个技术略久,不然你很难分辨哪些是真大牛,哪些是假大牛。一般可以从项目质量,回答质量来判断。如果有一两本书很加分(什么从几天学会xxx就别拿出来显眼了)。社区活跃度没有什么意义,刷存在感的伪大牛很多。
Github issue
有很多开源项目在github上都有issue列表,也许你碰到的问题恰好已经得到解决或者正在解决,不妨去看看。
就这些。