gpt4 book ai didi

node.js - 错误!请求的依赖类型无效 : alias

转载 作者:搜寻专家 更新时间:2023-10-31 23:06:58 24 4
gpt4 key购买 nike

Inherited project 说要运行 npm install 来为项目安装包。但是当我这样做时,出现以下错误:

npm ERR! Invalid dependency type requested: alias

在日志中我可以看到以下消息:

212 silly fetchPackageMetaData error for redux-form-7@npm:redux-form@7.3.0 Invalid dependency type requested: alias

...

2744 verbose stack Error: Invalid dependency type requested: alias

2744 verbose stack at getFetcher (/Users/rich/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/pacote/lib/fetch.js:68:15)

2744 verbose stack at manifest (/Users/rich/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/pacote/lib/fetch.js:15:19)

2744 verbose stack at pinflight (/Users/rich/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/pacote/manifest.js:24:12)

...

package.json 中如下:

{
"dependencies": {
"redux-form": "5.3.3",
"redux-form-7": "npm:redux-form@7.3.0"
}
}

我用谷歌搜索了 SO 但我找不到此依赖语法的用途或错误的含义?

最佳答案

npm >= 6.9.0 可以处理别名,https://npm.community/t/release-npm-6-9-0/5911 .

关于node.js - 错误!请求的依赖类型无效 : alias,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54085943/

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