报错信息
0 info it worked if it ends with ok
1 verbose cli [ 'E:\\nodejs\\node.exe',
1 verbose cli 'E:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using npm@2.14.12
3 info using node@v4.2.4
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info prebuild fe@1.0.0
6 info build fe@1.0.0
7 verbose unsafe-perm in lifecycle true
8 info fe@1.0.0 Failed to exec build script
9 verbose stack Error: fe@1.0.0 build: `NODE_ENV=development webpack --config webpack.config.js --watch --progress --colors`
9 verbose stack Exit status 1
9 verbose stack at EventEmitter.<anonymous> (E:\nodejs\node_modules\npm\lib\utils\lifecycle.js:214:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess.<anonymous> (E:\nodejs\node_modules\npm\lib\utils\spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:818:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid fe@1.0.0
11 verbose cwd F:\git\server-rfid\fe
12 error Windows_NT 6.3.9600
13 error argv "E:\\nodejs\\node.exe" "E:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
14 error node v4.2.4
15 error npm v2.14.12
16 error code ELIFECYCLE
17 error fe@1.0.0 build: `NODE_ENV=development webpack --config webpack.config.js --watch --progress --colors`
17 error Exit status 1
18 error Failed at the fe@1.0.0 build script 'NODE_ENV=development webpack --config webpack.config.js --watch --progress --colors'.
18 error This is most likely a problem with the fe package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error NODE_ENV=development webpack --config webpack.config.js --watch --progress --colors
18 error You can get their info via:
18 error npm owner ls fe
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
配置
{
"name": "fe",
"version": "1.0.0",
"description": "fe",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"babel-core": "^6.5.2",
"babel-loader": "^6.2.3",
"babel-preset-es2015": "^6.5.0",
"babel-preset-react": "^6.5.0",
"css-loader": "^0.23.1",
"expose-loader": "^0.7.1",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.8.5",
"jQuery": "^1.7.4",
"node-sass": "^3.4.2",
"sass-loader": "^3.1.2",
"style-loader": "^0.13.0",
"url-loader": "^0.5.7",
"webpack": "^1.12.13"
},
"scripts": {
"dist": "NODE_ENV=production webpack --progress --colors",
"build": "NODE_ENV=development webpack --config webpack.config.js --watch --progress --colors"
},
"repository": {
"type": "git",
"url": "https://github.com/DemoPlus/server-rfid.git"
},
"author": "qiutc",
"license": "ISC"
}
把写在package.json里面的配置拿出来看看