我是谁666
我是谁666
  • 发布:2023-09-01 10:14
  • 更新:2023-09-04 10:39
  • 阅读:327

mac 安装了nvm 然后 云函数就上传不上去 npm install 执行失败

分类:HBuilderX

10:08:52.480 [阿里云:uni-push]正在上传公共模块uni-captcha...
10:08:52.481 [阿里云:uni-push]正在安装公共模块uni-captcha依赖...
10:09:16.241 [阿里云:uni-push]公共模块uni-captcha上传失败。失败原因:npm install 执行失败。请检查node执行环境。 例:尝试安装npm并设置环境变量后,再次操作。
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
Warning: memcached 1.6.21_1 is already installed and up-to-date.
To reinstall 1.6.21_1, run:
brew reinstall memcached
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
/Users/gds/.profile: line 8: cd: bin: No such file or directory
/Users/gds/.profile: line 9: cd: bin: No such file or directory
/Users/gds/.profile: line 10: ./zkServer.sh: No such file or directory
Error: No available formula with the name "start". Did you mean star, kstart, tart, qstat or staq?
Error: No available formula with the name "start". Did you mean star, kstart, tart, qstat or staq?
failed to listen on TCP port 11211: Address already in use
Error: No available formula with the name "start". Did you mean star, kstart, tart, qstat or staq?
failed to listen on TCP port 11211: Address already in use
/Users/gds/.profile: line 18: cd: bin: No such file or directory
/Users/gds/.profile: line 19: ./zkServer.sh: No such file or directory
/Users/gds/.profile: line 20: ./zkServer.sh: No such file or directory
/Users/gds/.profile: line 21: ./zkServer.sh: No such file or directory
/Users/gds/.profile: line 22: ./zkServer.sh: No such file or directory
/Users/gds/.profile: line 23: ./zkServer.sh: No such file or directory
/Users/gds/.profile: line 27: ./zkServer.sh: No such file or directory
/Users/gds/.profile: line 28: ./zkServer.sh: No such file or directory
/Users/gds/.profile: line 29: ./zkServer.sh: No such file or directory
bash: ./zkServer.sh: Operation not permitted
/Users/gds/.profile: line 33: /Applications/SCToolbarButton.app/Contents/MacOS/SCToolbarButton: No such file or directory

2023-09-01 10:14 负责人:DCloud_HB_WDL 分享
已邀请:
DCloud_uniCloud_WYQ

DCloud_uniCloud_WYQ

看下在HBuilderX里面是不是配置了nodejs、npm的路径,如果配了的话删掉试试

  • 我是谁666 (作者)

    本来是没有配置的,后来我查了社区,也是这个回答,说没有配置就去配置,如果有配置就删除掉试试,都试了,还是不行,但是我在控制台又能用npm安装 node版本打印什么的都正常,就是云函数上传时,要安装依赖的都不行。还是说我配置的路径不对,内置外置都试了,都不行

    2023-09-04 10:40

  • DCloud_uniCloud_WYQ

    回复 我是谁666: 删掉报什么错误

    2023-09-04 11:04

  • 我是谁666 (作者)

    回复 DCloud_uniCloud_WYQ: 都是一样的错

    2023-09-04 11:28

我是谁666

我是谁666 (作者) - 我是谁

本来是没有配置的,后来我查了社区,也是这个回答,说没有配置就去配置,如果有配置就删除掉试试,都试了,还是不行,但是我在控制台又能用npm安装 node版本打印什么的都正常,就是云函数上传时,要安装依赖的都不行。

我是谁666

我是谁666 (作者) - 我是谁

还是说我配置的路径不对

要回复问题请先登录注册