无法解构 'node' 的 属性 'name',因为它为 null
Cannot destructure property 'name' of 'node' as it is null
我想安装aurelia项目的依赖时,报错:
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /Users/ehsanghaffarii/.nvm/versions/node/v15.5.1/bin/node /Users/ehsanghaffarii/.nvm/versions/node/v15.5.1/lib/node_modules/npm/bin/npm-cli.js install --cache=/Users/ehsanghaffarii/.npm/_cacache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit
npm ERR! npm ERR! code ERESOLVE
npm ERR! npm ERR! Cannot destructure property 'name' of 'node' as it is null.
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /Users/ehsanghaffarii/.npm/_cacache/_logs/2021-01-14T17_17_22_767Z-debug.log
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ehsanghaffarii/.npm/_logs/2021-01-14T17_19_13_263Z-debug.log
如何解决这个问题?
节点 v15.5.1
npm v7.3.0
在我和 this GitHub thread 看来,您正在尝试安装需要提升权限的全局依赖项 and/or npm 包版本有问题。请确保您有足够的权限将 npm
降级到最早的版本。
如果解决了您的问题,请告诉我。
我想安装aurelia项目的依赖时,报错:
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /Users/ehsanghaffarii/.nvm/versions/node/v15.5.1/bin/node /Users/ehsanghaffarii/.nvm/versions/node/v15.5.1/lib/node_modules/npm/bin/npm-cli.js install --cache=/Users/ehsanghaffarii/.npm/_cacache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit
npm ERR! npm ERR! code ERESOLVE
npm ERR! npm ERR! Cannot destructure property 'name' of 'node' as it is null.
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /Users/ehsanghaffarii/.npm/_cacache/_logs/2021-01-14T17_17_22_767Z-debug.log
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ehsanghaffarii/.npm/_logs/2021-01-14T17_19_13_263Z-debug.log
如何解决这个问题?
节点 v15.5.1
npm v7.3.0
在我和 this GitHub thread 看来,您正在尝试安装需要提升权限的全局依赖项 and/or npm 包版本有问题。请确保您有足够的权限将 npm
降级到最早的版本。
如果解决了您的问题,请告诉我。