Ram*_*Ibe 8 node.js npm angularjs
我尝试创建一个新的角度应用程序ng 新应用程序,但出现此错误
Node.js version v11.0.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/releases/.
(node:16120) UnhandledPromiseRejectionWarning: Error: Not supported
at Object.<anonymous> (/home/user/.nvm/versions/node/v11.0.0/lib/node_modules/@angular/cli/bin/bootstrap.js:21:1)
at Module._compile (internal/modules/cjs/loader.js:707:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
at Module.load (internal/modules/cjs/loader.js:605:32)
at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
at Function.Module._load (internal/modules/cjs/loader.js:536:3)
at Module.require (internal/modules/cjs/loader.js:643:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/home/user/.nvm/versions/node/v11.0.0/lib/node_modules/@angular/cli/bin/ng.js:47:3)
at Module._compile (internal/modules/cjs/loader.js:707:30)
(node:16120) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:16120) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Run Code Online (Sandbox Code Playgroud)
我尝试卸载节点、npm和角度并再次安装它们,但遇到了同样的错误
小智 0
将节点版本更新到 19.x 后,我也遇到了这个问题。但后来我将节点版本更新到最新的稳定版本,这个问题就解决了。尝试使用此链接上的以下步骤更新您的节点:
https://codeforgeek.com/update-node-using-npm/
| 归档时间: |
|
| 查看次数: |
36860 次 |
| 最近记录: |