[英]Package installation failed: npm ERR! code ERESOLVEnpm ERR! Cannot destructure property 'name' of 'node' as it is null
Mohameds-MacBook-Air:client sakeeljawfer$ ng add @ng-bootstrap/ng-bootstrap
ℹ Using package manager: npm
✔ Found compatible package version: @ng-bootstrap/ng-bootstrap@9.1.0.
✔ Package information loaded.
✖ Package installation failed: npm ERR! code ERESOLVE
npm ERR! Cannot destructure property 'name' of 'node' as it is null.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/sakeeljawfer/.npm/_logs/2021-04-16T03_41_10_925Z-debug.log
Package install failed, see above.
this is the /Users/sakeeljawfer/.npm/_logs/2021-04-16T03_41_10_925Z-debug.log file that includes the versions and dependencies
这是包含版本和依赖项的 /Users/sakeeljawfer/.npm/_logs/2021-04-16T03_41_10_925Z-debug.log 文件
0 verbose cli [
0 verbose cli '/usr/local/bin/node',
0 verbose cli '/usr/local/bin/npm',
0 verbose cli 'install',
0 verbose cli '@ng-bootstrap/ng-bootstrap@9.1.0',
0 verbose cli '--quiet'
0 verbose cli ]
_logs/2021-04-16T03_41_10_925Z-debug.log thus the error log file
_logs/2021-04-16T03_41_10_925Z-debug.log 因此错误日志文件
I had the same issue and solved it this way:我有同样的问题并以这种方式解决:
npm install @ng-bootstrap/ng-bootstrap
In https://ng-bootstrap.github.io/#/getting-started go to "Manual installation" and follow the instructions:)在https://ng-bootstrap.github.io/#/getting-started go 到“手动安装”并按照说明操作:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.