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@v8.11.4
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle client@1.0.0prestart: client@1.0.0
6 info lifecycle client@1.0.0start: client@1.0.0
7 verbose lifecycle client@1.0.0start: unsafe-perm in lifecycle true
8 verbose lifecycle client@1.0.0start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Lucas Navarro\Desktop\01-projeto-webpack\projeto-webpack\client\node_modules.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\Luan Borges\AppData\Local\Programs\Python\Python36;C:\Users\Luan Borges\AppData\Local\Programs\Python\Python36\Scripts;C:\Users\Lucas Navarro\AppData\Local\Microsoft\WindowsApps;;C:\Users\Lucas Navarro\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Lucas Navarro\AppData\Roaming\npm
9 verbose lifecycle client@1.0.0start: CWD: C:\Users\Lucas Navarro\Desktop\01-projeto-webpack\projeto-webpack\client
10 silly lifecycle client@1.0.0start: Args: [ '/d /s /c', 'webpack-dev-server' ]
11 silly lifecycle client@1.0.0start: Returned: code: 1 signal: null
12 info lifecycle client@1.0.0start: Failed to exec start script
13 verbose stack Error: client@1.0.0 start: webpack-dev-server
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess.handle.onexit (internal/childprocess.js:209:5)
14 verbose pkgid client@1.0.0
15 verbose cwd C:\Users\Lucas Navarro\Desktop\01-projeto-webpack\projeto-webpack\client
16 verbose Windows_NT 10.0.16299
17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
18 verbose node v8.11.4
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error client@1.0.0 start: webpack-dev-server
22 error Exit status 1
23 error Failed at the client@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 ]
const path = require('path');
const babiliPlugin = require('babili-webpack-plugin');
let plugins = [];
if(process.env.NODE_ENV == 'production'); {
puglins.push(new babiliPlugin());
}
module.exports = {
entry: './app-src/app.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
},
module: {
rules: [{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
}
}]
},
puglins
}
{
"name": "client",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build-dev": "webpack --config webpack.config.js",
"build-prod": "cross-env NODE_ENV=production webpack --config webpack.config.js",
"start": "webpack-dev-server"
},
"author": "",
"license": "ISC",
"dependencies": {
"reflect-metadata": "^0.1.10"
},
"devDependencies": {
"babel-core": "^6.25.0",
"babel-loader": "^7.1.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-es2017": "^6.24.1",
"cross-env": "^5.0.1",
"webpack": "^3.1.0",
"webpack-dev-server": "^2.5.1"
}
}