简体   繁体   English

dyld:找不到符号:_node_module_register

[英]dyld: Symbol not found: _node_module_register

I'm starting Angular2 Learning using this github repo: https://github.com/angular/quickstart 我正在使用此github存储库开始Angular2 Learning: https : //github.com/angular/quickstart

I tried to start the project to be viewed in a browser using npm start. 我试图使用npm start启动要在浏览器中查看的项目。 (I've already run npm install). (我已经运行npm install)。 It just shows this error: 它只是显示此错误:

$ npm start

\> angular-quickstart@1.0.0 start /Users/kimnicolemontano/quickstart
\> tsc && concurrently "tsc -w" "lite-server" 
     Did not detect a `bs-config.json` or `bs-config.js` override file. Using lite-server defaults...
     ** browser-sync config **
     { injectChanges: false,
     files: [ './**/*.{html,htm,css,js}' ],
     watchOptions: { ignored: 'node_modules' },
     server: { baseDir: './', middleware: [ [Function], [Function] ] } }
     dyld: lazy symbol binding failed: Symbol not found: _node_module_register
     Referenced from: /Users/username/quickstart/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node
     Expected in: flat namespace

     dyld: Symbol not found: _node_module_register
     Referenced from: /Users/username/quickstart/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node
     Expected in: flat namespace

     10:53:50 AM - Compilation complete. Watching for file changes.

I'm doing this course in udemy https://www.udemy.com/ultimate-angular-2/ . 我正在用udemy https://www.udemy.com/ultimate-angular-2/进行本课程。 I followed the installation process. 我遵循了安装过程。

It looks like the problem is caused by your local Node or NPM installation. 看来问题是由您的本地Node或NPM安装引起的。 The best way to fix this is to uninstall and re-install Node and NPM again, then, update them to the latest versions. 解决此问题的最佳方法是再次卸载并重新安装Node和NPM,然后将它们更新到最新版本。

To do that, simply do these steps: 为此,只需执行以下步骤:

  • sudo -i 须藤-i
  • npm install npm -g npm安装npm -g

  • sudo -i 须藤-i

  • npm cache clean -f npm缓存清理-f
  • npm install -gn npm install -gn
  • n stable n稳定

Then afterwards, run these to verify your new versions. 然后,运行这些命令以验证您的新版本。

node -v 节点-v

npm -v npm -v

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM