gpt4 book ai didi

node.js - npm install 导致无法读取未定义的属性 'name'

转载 作者:行者123 更新时间:2023-12-05 06:05:33 26 4
gpt4 key购买 nike

我运行 npm i 并收到此消息:

npm i
npm ERR! Cannot read property 'name' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/minta-dan/.npm/_logs/2021-02-01T12_07_22_367Z-debug.log

在日志中我可以看出一切都已安装但是:

619 timing idealTree Completed in 47459ms
4620 timing command:install Completed in 47463ms
4621 verbose stack TypeError: Cannot read property 'name' of undefined
4621 verbose stack at Arborist.[canPlaceDep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1387:62)
4621 verbose stack at Arborist.[placeDep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1061:36)
4621 verbose stack at Arborist.[placeDep] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1212:41)
4621 verbose stack at /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:766:46

最佳答案

我遇到了同样的问题。在 npm install -g npm@latest 之后我无法再重现。也许您想尝试一下。

取自: https://github.com/aws/aws-cdk/issues/11238

关于node.js - npm install 导致无法读取未定义的属性 'name',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65992612/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com