npm ERR! Unsupported URL Type “npm:“: npm:fork-ts-checker-webpack-plugin@^5.0.11

背景

执行npm install时报如下错误

npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "npm:": npm:fork-ts-checker-webpack-plugin@^5.0.11
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported

在这里插入图片描述

解决方案

更新npm版本

npm install -g npm

你可能感兴趣的:(JavaScript,npm,npm,javascript)