收藏
回答

npm install --save wx-server-sdk@latest 报错,怎么处理呢?

$ 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



回答关注问题邀请回答
收藏

2 个回答

  • Mr.Zhao
    Mr.Zhao
    发表于小程序端
    09-23

    百度下就解决了,一直问

    09-23
    有用
    回复
  • 咿呜鱼
    咿呜鱼
    09-23

    提示代表npm 代理的地址无法访问;如果之前配置了代理,可以试试换一个代理或者修改代理或者不使用代理;具体可以搜索一下npm config set proxy和npm config set https-proxy这两个命令(或者在项目根目录下.npmrc文件内配置)

    09-23
    有用
    回复
登录 后发表内容