FrozenPandaz / ng-universal-demo

171 stars 54 forks source link

The server not start #24

Closed daniDevKr closed 7 years ago

daniDevKr commented 7 years ago

C:\Users\Work\Desktop\ANGULAR TESTS\ng-universal-demo> npm run start

ng-universal-demo@1.0.0 start C:\Users\Work\Desktop\ANGULAR TESTS\ng-universal-demo npm run build && npm run server

ng-universal-demo@1.0.0 prebuild C:\Users\Work\Desktop\ANGULAR TESTS\ng-universal-demo npm run clean

ng-universal-demo@1.0.0 clean C:\Users\Work\Desktop\ANGULAR TESTS\ng-universal-demo rimraf dist

ng-universal-demo@1.0.0 build C:\Users\Work\Desktop\ANGULAR TESTS\ng-universal-demo webpack

Hash: 0af53dd4e6a45607d8eed122cb56208b6db6fd1c Version: webpack 2.6.1 Child Hash: 0af53dd4e6a45607d8ee Time: 16591ms Asset Size Chunks Chunk Names 0.client.js 2.17 kB 0 [emitted] client.js 2.5 MB 1 [emitted] [big] main 0.client.js.map 1.08 kB 0 [emitted] client.js.map 3.03 MB 1 [emitted] main index.html 232 bytes [emitted] [0] ./~/rxjs/Observable.js 11.4 kB {1} [built] [3] ./~/rxjs/util/root.js 885 bytes {1} [built] [7] ./~/@angular/platform-browser/@angular/platform-browser.es5.js 141 kB {1} [built] [9] (webpack)/buildin/global.js 509 bytes {1} [built] [19] ./~/rxjs/add/operator/map.js 187 bytes {1} [built] [39] ./~/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js 5.88 kB {1} [built] [40] ./src/app/browser-app.module.ts 1.43 kB {1} [built] [41] ./~/reflect-metadata/Reflect.js 48 kB {1} [built] [42] ./~/zone.js/dist/zone.js 96 kB {1} [built] [44] ./~/@angular/compiler/@angular/compiler.es5.js 1.02 MB {1} [built] [45] ./src/app/app.module.ts 1.64 kB {1} [built] [47] ./src/main.browser.ts 357 bytes {1} [built] [49] ./src/modules/transfer-state/browser-transfer-state.module.ts 1.38 kB {1} [built] [50] ./~/process/browser.js 5.42 kB {1} [built] [78] ./~/rxjs/util/toSubscriber.js 760 bytes {1} [built]

npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\Work\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "build" npm ERR! node v6.10.0 npm ERR! npm v4.3.0 npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! ng-universal-demo@1.0.0 build: webpack npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the ng-universal-demo@1.0.0 build script 'webpack'. 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 ng-universal-demo package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! webpack npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs ng-universal-demo npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls ng-universal-demo npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Work\AppData\Roaming\npm-cache_logs\2017-06-30T10_38_09_741Z-debug.log

npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\Work\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "start" npm ERR! node v6.10.0 npm ERR! npm v4.3.0 npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! ng-universal-demo@1.0.0 start: npm run build && npm run server npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the ng-universal-demo@1.0.0 start script 'npm run build && npm run server'. 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 ng-universal-demo package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run build && npm run server npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs ng-universal-demo npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls ng-universal-demo npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Work\AppData\Roaming\npm-cache_logs\2017-06-30T10_38_09_791Z-debug.log

2017-06-30T10_38_09_791Z-debug.log

michaelpwilson commented 7 years ago

@jhonToni - I fixed this by pinning my TypeScript version in the package.json to 2.3.4