目录
Install fail Error: Unsupported URL Type “workspace:“: workspace
yarn安装包时报 `unable to verify the first certificate` 错误
error Received malformed response from registry for undefined. The registry may be down.
-
Install fail Error: Unsupported URL Type “workspace:“: workspace
背景:在尝试npm i初始化失败,报错信息为:
Install fail! Error: Unsupported URL Type "workspace:": workspace:*
原因:检查package.json中的项目依赖版本是否出现[workspace:]。如果使用npm i来安装,它会出现 "不支持的URL类型 "workspace:": workspace:"。如果使用yarn来安装,就ok!
解决:
1.安装yarn
npm install -g yarn
2.安装某个包名
yarn add @type-challenges/utils
安装成功!
3.安装全部
yarn install
安装成功!
-
yarn安装包时报 `unable to verify the first certificate` 错误
D:\Code\Web\StudyOrTest\electronStudy> npm config set strict-ssl false // 修改
D:\Code\Web\StudyOrTest\electronStudy> npm config get strict-ssl // 确认值是否修改
false
再安装
-
error Received malformed response from registry for undefined. The registry may be down.
解决方法:删除 package.json 下的 该报错组件;(注意 JSON 格式)