es6 and lite-server errors
See original GitHub issue[1] Did not detect a bs-config.json
or bs-config.js
override file. Using lite-server defaults…
[1] * browser-sync options **
[1] { injectChanges: false,
[1] files: [ './/.{html,htm,css,js}’ ],
[1] server: { baseDir: ‘./’, middleware: [ [Function], [Function] ] } }
[1] [BS] Access URLs:
[1] ------------------------------------
[1] Local: http://localhost:3000
[1] External: http://192.168.1.3:3000
[1] ------------------------------------
[1] UI: http://localhost:3001
[1] UI External: http://192.168.1.3:3001
[1] ------------------------------------
[1] [BS] Serving files from: ./
[1] [BS] Watching files…
[1] 16.03.19 17:59:33 200 GET /index.html
[1] 16.03.19 17:59:33 404 GET /styles.css
[1] 16.03.19 17:59:33 304 GET /node_modules/es6-shim/es6-shim.min.js
[1] 16.03.19 17:59:33 304 GET /node_modules/systemjs/dist/system-polyfills.js
[1] 16.03.19 17:59:33 304 GET /node_modules/angular2/bundles/angular2-polyfills.js
[1] 16.03.19 17:59:33 304 GET /node_modules/systemjs/dist/system.src.js
[1] 16.03.19 17:59:33 304 GET /node_modules/angular2/es6/dev/src/testing/shims_for_IE.js
[1] 16.03.19 17:59:33 304 GET /node_modules/rxjs/bundles/Rx.js
[1] 16.03.19 17:59:33 304 GET /node_modules/angular2/bundles/angular2.dev.js
[0] node_modules/angular2/typings/browser.d.ts(6,14): error TS2300: Duplicate identifier ‘PromiseConstructor’.
[0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(22,5): error TS2300: Duplicate identifier ‘done’.
[0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(23,5): error TS2300: Duplicate identifier ‘value’.
[0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(46,5): error TS2300: Duplicate identifier ‘size’.
[0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(52,5): error TS2300: Duplicate identifier ‘prototype’.
[0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(66,5): error TS2300: Duplicate identifier ‘size’.
[0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(72,5): error TS2300: Duplicate identifier ‘prototype’.
[0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(88,5): error TS2300: Duplicate identifier ‘prototype’.
[0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(103,5): error TS2300: Duplicate identifier ‘prototype’.
[0] node_modules/angular2/typings/es6-promise/es6-promise.d.ts(11,15): error TS2300: Duplicate identifier ‘Promise’.
[0] node_modules/angular2/typings/es6-promise/es6-promise.d.ts(42,16): error TS2300: Duplicate identifier ‘Promise’.
[0] typings/browser/ambient/es6-shim/index.d.ts(11,5): error TS2300: Duplicate identifier ‘done’.
[0] typings/browser/ambient/es6-shim/index.d.ts(12,5): error TS2300: Duplicate identifier ‘value’.
[0] typings/browser/ambient/es6-shim/index.d.ts(477,11): error TS2300: Duplicate identifier ‘Promise’.
[0] typings/browser/ambient/es6-shim/index.d.ts(496,11): error TS2300: Duplicate identifier ‘PromiseConstructor’.
[0] typings/browser/ambient/es6-shim/index.d.ts(554,13): error TS2300: Duplicate identifier ‘Promise’.
[0] typings/browser/ambient/es6-shim/index.d.ts(563,5): error TS2300: Duplicate identifier ‘size’.
[0] typings/browser/ambient/es6-shim/index.d.ts(572,5): error TS2300: Duplicate identifier ‘prototype’.
[0] typings/browser/ambient/es6-shim/index.d.ts(583,5): error TS2300: Duplicate identifier ‘size’.
[0] typings/browser/ambient/es6-shim/index.d.ts(592,5): error TS2300: Duplicate identifier ‘prototype’.
[0] typings/browser/ambient/es6-shim/index.d.ts(607,5): error TS2300: Duplicate identifier ‘prototype’.
[0] typings/browser/ambient/es6-shim/index.d.ts(621,5): error TS2300: Duplicate identifier ‘prototype’.
[0] 5:59:33 PM - Compilation complete. Watching for file changes.
[1] [BS] File changed: app/app.component.js
[1] [BS] File changed: app/main.js
[1] [BS] File changed: app/sayHello.js
[1] 16.03.19 17:59:33 200 GET /app/main.js
[1] 16.03.19 17:59:33 200 GET /app/app.component.js
[1] events.js:154
[1] throw er; // Unhandled ‘error’ event
[1] ^
[1]
[1] Error: watch node_modules/browser-sync/node_modules/lodash/lang/isNumber.js ENOSPC
[1] at exports._errnoException (util.js:890:11)
[1] at FSWatcher.start (fs.js:1313:19)
[1] at Object.fs.watch (fs.js:1341:11)
[1] at createFsWatchInstance (/run/media/habib/New Volume/projects/angular2/learn-from-doc/node_modules/chokidar/lib/nodefs-handler.js:37:15)
[1] at setFsWatchListener (/run/media/habib/New Volume/projects/angular2/learn-from-doc/node_modules/chokidar/lib/nodefs-handler.js:80:15)
[1] at FSWatcher.NodeFsHandler._watchWithNodeFs (/run/media/habib/New Volume/projects/angular2/learn-from-doc/node_modules/chokidar/lib/nodefs-handler.js:228:14)
[1] at FSWatcher.NodeFsHandler._handleFile (/run/media/habib/New Volume/projects/angular2/learn-from-doc/node_modules/chokidar/lib/nodefs-handler.js:255:21)
[1] at FSWatcher.<anonymous> (/run/media/habib/New Volume/projects/angular2/learn-from-doc/node_modules/chokidar/lib/nodefs-handler.js:473:21)
[1] at FSReqWrap.oncomplete (fs.js:82:15)
[1]
[1] npm
[1]
[1] ERR! Linux 4.4.5-1-MANJARO
[1] npm ERR!
[1] argv “/usr/bin/node” “/usr/bin/npm” “run” “lite”
[1] npm ERR! node v5.8.0
[1] npm
[1] ERR! npm v3.8.2
[1] npm ERR! code ELIFECYCLE
[1] npm ERR! angular2-quickstart@1.0.0 lite: lite-server
[1] npm ERR! Exit status 1
[1] npm ERR!
[1] npm ERR! Failed at the angular2-quickstart@1.0.0 lite script ‘lite-server’.
[1] npm ERR! Make sure you have the latest version of node.js and npm installed.
[1] npm
[1] ERR! If you do, this is most likely a problem with the angular2-quickstart package,
[1] npm ERR! not with npm itself.
[1] npm ERR! Tell the author that this fails on your system:
[1] npm ERR! lite-server
[1] npm ERR! You can get information on how to open an issue for this project with:
[1] npm ERR! npm bugs angular2-quickstart
[1] npm ERR! Or if that isn’t available, you can get their info via:
[1] npm ERR! npm owner ls angular2-quickstart
[1] npm ERR! There is likely additional logging output above.
[1]
[1] npm
[1] ERR! Please include the following file with any support request:
[1] npm ERR! /run/media/habib/New Volume/projects/angular2/learn-from-doc/npm-debug.log
[1] npm run lite exited with code 1
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
Had the same problem on Fedora 23, using various node and npm versions. I found this solution that worked for me: Related: angular/angular#6097 Another reference that contains some interesting links in the comments: http://stackoverflow.com/questions/34399445/angular-2-quickstart-live-server-error
Closing as this is not a QS issue