我想用Angular2所以我從官方網站入門教程https://angular.io/docs/ts/latest/quickstart.htmlAngular2快速入門錯誤
我只是複製過去的代碼 和結束時我運行命令:
$ NPM安裝 - >確定
$ NPM啓動
> [email protected] start /home/pln/dev/myprojects/myprojects/myapp-front
> concurrent "npm run tsc:w" "npm run lite"
[0]
[0] > [email protected] tsc:w /home/pln/dev/myprojects/myprojects/myapp-front
[0] > tsc -w
[0]
[1]
[1] > [email protected] lite /home/pln/dev/myprojects/myprojects/myapp-front
[1] > lite-server
[1]
[1] [BS] Access URLs:
[1] -------------------------------------
[1] Local: http://localhost:3000
[1] External: http://192.168.0.47:3000
[1] -------------------------------------
[1] UI: http://localhost:3001
[1] UI External: http://192.168.0.47:3001
[1] -------------------------------------
[1] [BS] Serving files from: ./
[1] [BS] Watching files...
[0] 09:04:01 - Compilation complete. Watching for file changes.
[1] [BS] File changed: app/app.component.js
[1] [BS] File changed: app/boot.js
[1] events.js:85
[1] throw er; // Unhandled 'error' event
[1] ^
[1] Error: watch ENOSPC
[1] at exports._errnoException (util.js:746:11)
[1] at FSWatcher.start (fs.js:1172:11)
[1] at Object.fs.watch (fs.js:1198:11)
[1] at createFsWatchInstance (/home/pln/dev/myprojects/myprojects/myapp-front/node_modules/lite-server/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:37:15)
[1] at setFsWatchListener (/home/pln/dev/myprojects/myprojects/myapp-front/node_modules/lite-server/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:80:15)
[1] at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/pln/dev/myprojects/myprojects/myapp-front/node_modules/lite-server/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:228:14)
[1] at FSWatcher.NodeFsHandler._handleFile (/home/pln/dev/myprojects/myprojects/myapp-front/node_modules/lite-server/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:255:21)
[1] at FSWatcher.<anonymous> (/home/pln/dev/myprojects/myprojects/myapp-front/node_modules/lite-server/node_modules/browser-sync/node_modules/chokidar/lib/nodefs-handler.js:473:21)
[1] at FSReqWrap.oncomplete (fs.js:95:15)
[1]
[1] npm
[1]
[1] ERR!
[1] Linux 3.16.0-56-generic
[1] npm
[1] ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "lite"
[1] npm ERR! node
[1] v0.12.9
[1] npm ERR! npm
[1] v2.14.9
[1] npm
[1] ERR! code ELIFECYCLE
[1] npm
[1] ERR! [email protected] lite: `lite-server`
[1] npm
[1] ERR! Exit status 1
[1] npm
[1] ERR!
[1] npm
[1] ERR!
[1] Failed at the [email protected] lite script 'lite-server'.
[1] npm ERR! This is most likely a problem with the myapp-front 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 their info via:
[1] npm ERR! npm owner ls myapp-front
[1] npm ERR!
[1] There is likely additional logging output above.
[1]
[1] npm ERR! Please include the following file with any support request:
[1] npm
[1] ERR! /home/pln/dev/myprojects/myprojects/myapp-front/npm-debug.log
[1] npm run lite exited with code 1
我能做些什麼?
thx,我有19個免費的我/家。很奇怪。 – Maryo
工作原理:echo fs.inotify.max_user_watches = 524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p – Maryo
@Maryo對我來說也是如此。那究竟做了什麼? –