Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install: No versions available for detect-port 无法安装依赖 #738

Closed
itzdrli opened this issue Dec 8, 2024 · 2 comments
Closed

Comments

@itzdrli
Copy link

itzdrli commented Dec 8, 2024

rt, 刚 clone 下来的项目,npm config set registry https://registry.npmmirror.com 后进行 npm i, 然后出现如标题中错误,
完整日志:

> npm i                                                 
(node:1618848) ExperimentalWarning: CommonJS module /usr/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /usr/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
npm error code ENOVERSIONS
npm error No versions available for detect-port
npm error A complete log of this run can be found in: /root/.npm/_logs/2024-12-08T18_36_59_558Z-debug-0.log

package.json 和其他地方均未找到这个任何文件包含了字符串 detect-port,同时只在 npmmirror 上找到了包 detect-port-alt,不知该如何替换

如果能有大佬帮忙回答一下就万分感谢了

@itzdrli
Copy link
Author

itzdrli commented Dec 8, 2024

不知怎么的自己又好了

@itzdrli itzdrli closed this as completed Dec 8, 2024
@fengmk2
Copy link
Member

fengmk2 commented Dec 9, 2024

#739 这个原因

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants