You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 9, 2020. It is now read-only.
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-starternpm 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:{ "name": "angular2-starter", "version": "0.2.5", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/mirkonasato/angular2-course-webpack-starter.git" }, "private": true, "scripts": { "build": "webpack --progress", "build:prod": "cross-env APP_ENVIRONMENT=production webpack -p --progress", "postinstall": "typings install", "serve": "webpack-dev-server --inline --progress" }, "dependencies": { "@angular/common": "^4.0.3", "@angular/compiler": "^4.0.3", "@angular/compiler-cli": "^4.0.3", "@angular/core": "^4.0.3", "@angular/forms": "^4.0.3", "@angular/http": "^4.0.3", "@angular/platform-browser": "^4.0.3", "@angular/platform-browser-dynamic": "^4.0.3", "@angular/platform-server": "^4.0.3", "@angular/router": "^4.0.3", "core-js": "^2.4.1", "rxjs": "^5.3.0", "zone.js": "^0.8.8" }, "devDependencies": { "@ngtools/webpack": "^1.3.0", "angular2-template-loader": "^0.6.2", "cross-env": "^4.0.0", "enhanced-resolve": "^3.1.0", "html-webpack-plugin": "^2.28.0", "raw-loader": "^0.5.1", "rimraf": "^2.6.1", "ts-loader": "^2.0.3", "typescript": "^2.2.2", "typings": "^2.1.1", "webpack": "^2.4.1", "webpack-dev-server": "^2.4.3" } }After
npm run build:prod:Can you help to fix it?