ERROR in /home/lx93uv/hub/angular2-course-webpack-starter/src/typings.d.ts (5,18): Duplicate identifier 'require'.
ERROR in /home/lx93uv/hub/angular2-course-webpack-starter/node_modules/@types/node/index.d.ts (73,13): Duplicate identifier 'require'.
ERROR in Could not resolve "./src/app/app.module" from "./src/app/app.module".
Child src/app/app.component.html:
[0] ./src/app/app.component.html 49 bytes {0} [built]
Child html-webpack-plugin for "index.html":
[0] ./~/html-webpack-plugin/lib/loader.js!./src/index.html 196 bytes {0} [built]
Child src/app/app.component.css:
[0] ./src/app/app.component.css 47 bytes {0} [built]
npm ERR! Linux 4.9.0-2-amd64
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build:prod"
npm ERR! node v7.9.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! angular2-starter@0.2.5 build:prod: `cross-env APP_ENVIRONMENT=production webpack -p --progress`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the angular2-starter@0.2.5 build:prod script 'cross-env APP_ENVIRONMENT=production webpack -p --progress'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env APP_ENVIRONMENT=production webpack -p --progress
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular2-starter
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/lx93uv/.npm/_logs/2017-04-22T16_35_27_098Z-debug.log
updated
package.json
:After
npm run build:prod
:Can you help to fix it?