dyld:找不到符号:_node_module_register

时间:2016-09-21 03:05:37

标签: angularjs node.js angular npm npm-install

我使用此github repo开始Angular2学习:https://github.com/angular/quickstart

我尝试使用npm start启动要在浏览器中查看的项目。 (我已经运行了npm install)。它只显示了这个错误:

{{1}}

我在udemy https://www.udemy.com/ultimate-angular-2/做这个课程。我按照安装过程。

1 个答案:

答案 0 :(得分:0)

看起来问题是由本地节点或NPM安装引起的。解决此问题的最佳方法是再次卸载并重新安装Node和NPM,然后将其更新到最新版本。

为此,只需执行以下步骤:

  • sudo -i
  • npm install npm -g

  • sudo -i

  • npm cache clean -f
  • npm install -g n
  • n stable

然后,运行这些以验证您的新版本。

node -v

npm -v