我使用此github repo开始Angular2学习:https://github.com/angular/quickstart
我尝试使用npm start启动要在浏览器中查看的项目。 (我已经运行了npm install)。它只显示了这个错误:
{{1}}
我在udemy https://www.udemy.com/ultimate-angular-2/做这个课程。我按照安装过程。
答案 0 :(得分:0)
看起来问题是由本地节点或NPM安装引起的。解决此问题的最佳方法是再次卸载并重新安装Node和NPM,然后将其更新到最新版本。
为此,只需执行以下步骤:
npm install npm -g
sudo -i
然后,运行这些以验证您的新版本。
node -v
npm -v