node.jsmacosnpmnpm-install

Getting error npm ERR! code EUNSUPPORTEDPROTOCOL while running npm install


While installing npm install am getting below error. Following are my node version.

OS : MacOS Big Sur V11.6.2

Macs-MacBook-Pro-3:slides mac$ node -v
v16.13.1
Macs-MacBook-Pro-3:slides mac$ npm -v
8.3.0
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:*

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mac/.npm/_logs/2022-01-01T02_28_04_430Z-debug-0.log

Any help here ?


Solution

  • You can resolve this error instead of mentioning as workspace:* replace it with file:*. It helps me to resolve this issue.