npm install尝试多种解决方法仍报错/An error was reported after several solutions were tried on npm #10782
Unanswered
wi1d1337
asked this question in
Help/Questions
Replies: 1 comment 5 replies
-
What's your npm version? run |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The installation process was successful when I utilized npm install to set up the identical project files. However, after transitioning to nvm for environment management and maintaining the same node version, I encountered difficulties in properly installing my dependencies. Despite attempting to clear the cache, change the node version, or re-pull the project (which proved effective on another computer), the issue persists.
之前使用npm install安装同一个项目的文件时是可以正常运行的,但是我现在使用nvm来管理环境后使用同样的node版本无法正常安装我的依赖。我已经尝试过清除我的cache或者是更换node版本,或是重新去pull项目(该项目在其他电脑上可以正常运行)。
This is the error/这是报错:
PS E:\Database\hjjc-admin> npm run dev
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "npm:": npm:string-width@^4.2.0
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\wu\AppData\Roaming\npm-cache_logs\2024-04-24T07_32_19_791Z-debug.log
Beta Was this translation helpful? Give feedback.
All reactions