簡體   English   中英

dyld:找不到符號:_node_module_register

[英]dyld: Symbol not found: _node_module_register

我正在使用此github存儲庫開始Angular2 Learning: https : //github.com/angular/quickstart

我試圖使用npm start啟動要在瀏覽器中查看的項目。 (我已經運行npm install)。 它只是顯示此錯誤:

$ 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.

我正在用udemy https://www.udemy.com/ultimate-angular-2/進行本課程。 我遵循了安裝過程。

看來問題是由您的本地Node或NPM安裝引起的。 解決此問題的最佳方法是再次卸載並重新安裝Node和NPM,然后將它們更新到最新版本。

為此,只需執行以下步驟:

  • 須藤-i
  • npm安裝npm -g

  • 須藤-i

  • npm緩存清理-f
  • npm install -gn
  • n穩定

然后,運行這些命令以驗證您的新版本。

節點-v

npm -v

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM