2016-09-21 88 views
0

我使用这个GitHub库开始Angular2学习:https://github.com/angular/quickstart使dyld:找不到符号:_node_module_register

我试着开始使用NPM启动一个浏览器中查看该项目。 (我已经运行npm install)。这恰恰说明了这个错误:

$ npm start 

\> [email protected] 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. 

我在udemy https://www.udemy.com/ultimate-angular-2/做这门课程。我遵循安装过程。

回答

0

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

要做到这一点,只需做这些步骤:

  • 须藤,我
  • NPM安装NPM -g

  • 须藤,我

  • NPM缓存清理-f
  • npm install -gn
  • n稳定

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

节点-v

NPM -v

相关问题