Table of contents
Install fail Error: Unsupported URL Type “workspace:“: workspace
The yarn installation package reports `unable to verify the first certificate` error
error Received malformed response from registry for undefined. The registry may be down.
-
Install fail Error: Unsupported URL Type “workspace:“: workspace
Background: Trying to initialize npm i failed, and the error message was:
Install fail! Error: Unsupported URL Type "workspace:": workspace:*
Reason: Check whether [workspace:] appears in the project dependency version in package.json. If I use npm i to install, it says "Unsupported URL type "workspace:": workspace:". If you use yarn to install, it's ok!
Solution:
1. Install yarn
npm install -g yarn
2. Install a certain package name
yarn add @type-challenges/utils
The installation is successful!
3. Install all
yarn
install successfully!
-
The yarn installation package reports `unable to verify the first certificate` error
D:\Code\Web\StudyOrTest\electronStudy> npm config set strict-ssl false // 修改
D:\Code\Web\StudyOrTest\electronStudy> npm config get strict-ssl // 确认值是否修改
false
reinstall
-
error Received malformed response from registry for undefined. The registry may be down.
Solution: delete the error reporting component under package.json; (note the JSON format)