$ npm install --save wx-server-sdk@latest
(node:4553) [DEP0170] DeprecationWarning: The URL http://your-proxy-url:port is invalid. Future versions of Node.js will throw an error.
(Use `node --trace-deprecation ...` to show where the warning was created)
npm error code ERR_INVALID_URL
npm error Invalid URL
npm error A complete log of this run can be found in: /Users/fuxiaolan/.npm/_logs/2024-09-23T10_03_18_747Z-debug-0.log
$ npm i @cloudbase/js-sdk@2.7.5-beta.0
(node:4563) [DEP0170] DeprecationWarning: The URL http://your-proxy-url:port is invalid. Future versions of Node.js will throw an error.
(Use `node --trace-deprecation ...` to show where the warning was created)
npm error code ERR_INVALID_URL
npm error Invalid URL
npm error A complete log of this run can be found in: /Users/fuxiaolan/.npm/_logs/2024-09-23T10_06_11_607Z-debug-0.log
百度下就解决了,一直问
提示代表npm 代理的地址无法访问;如果之前配置了代理,可以试试换一个代理或者修改代理或者不使用代理;具体可以搜索一下npm config set proxy和npm config set https-proxy这两个命令(或者在项目根目录下.npmrc文件内配置)