npm start上的Angular v2快速入门错误

时间:2018-06-14 18:02:41

标签: angular

按照角度的英雄之旅设置说明here,运行 npm start 在网络浏览器中只显示此内容:

  

在此处加载AppComponent内容...

我在流浪汉上的scotchbox内的ubuntu桌面上运行它。

我在控制台中的输出是:

 Error: watch /home/vagrant/Documents/quickstart/node_modules/karma/node_modules/lodash/internal/createForEach.js ENOSPC
[1]     at exports._errnoException (util.js:1018:11)
[1]     at FSWatcher.start (fs.js:1443:19)
[1]     at Object.fs.watch (fs.js:1470:11)
[1]     at createFsWatchInstance (/home/vagrant/Documents/quickstart/node_modules/chokidar/lib/nodefs-handler.js:37:15)
[1]     at setFsWatchListener (/home/vagrant/Documents/quickstart/node_modules/chokidar/lib/nodefs-handler.js:80:15)
[1]     at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/vagrant/Documents/quickstart/node_modules/chokidar/lib/nodefs-handler.js:228:14)
[1]     at FSWatcher.NodeFsHandler._handleFile (/home/vagrant/Documents/quickstart/node_modules/chokidar/lib/nodefs-handler.js:255:21)
[1]     at FSWatcher.<anonymous> (/home/vagrant/Documents/quickstart/node_modules/chokidar/lib/nodefs-handler.js:473:21)
[1]     at FSReqWrap.oncomplete (fs.js:123:15)
[1] 
[1] npm ERR! Linux 4.4.0-75-generic
[1] npm ERR! argv "/home/vagrant/.nvm/versions/node/v6.10.3/bin/node" "/home/vagrant/.nvm/versions/node/v6.10.3/bin/npm" "run" "serve"
[1] npm ERR! node v6.10.3
[1] npm ERR! npm  v3.10.10
[1] npm ERR! code ELIFECYCLE
[1] npm ERR! angular-quickstart@1.0.0 serve: `lite-server -c=bs-config.json`
[1] npm ERR! Exit status 1
[1] npm ERR! 
[1] npm ERR! Failed at the angular-quickstart@1.0.0 serve script 'lite-server -c=bs-config.json'.
[1] npm ERR! Make sure you have the latest version of node.js and npm installed.
[1] npm ERR! If you do, this is most likely a problem with the angular-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 -c=bs-config.json
[1] npm ERR! You can get information on how to open an issue for this project with:
[1] npm ERR!     npm bugs angular-quickstart
[1] npm ERR! Or if that isn't available, you can get their info via:
[1] npm ERR!     npm owner ls angular-quickstart
[1] npm ERR! There is likely additional logging output above.
[1] 
[1] npm ERR! Please include the following file with any support request:
[1] npm ERR!     /home/vagrant/Documents/quickstart/npm-debug.log
[1] npm run serve exited with code 1
[0] 5:58:03 PM - Compilation complete. Watching for file changes.

我的节点版本是3.10.10,npm版本是v6.10.3。

我很惊讶有关故障排除的信息是如何令人费解的,因为这个问题出现在本练习的最初阶段。

1 个答案:

答案 0 :(得分:0)

我引用this answer并运行以下命令以使 npm start 在没有错误消息的情况下运行:

import pandas as pd
m=np.random.random((15,2))
df=pd.DataFrame(m)
print df.corr()

我仍然在Chrome版本67.0.3396.87(官方版本)(64位)中看到持续的“在此处加载AppComponent内容...”消息,但它在Firefox 60.0.2(64位)中正常工作)。