4***@qq.com
4***@qq.com
  • 发布:2023-06-06 07:11
  • 更新:2023-06-06 21:18
  • 阅读:245

云服务空间初始化失败,/bin/bash: npm: command not found

分类:uniCloud

07:05:12.889 [阿里云:uni-admin-api]正在上传云函数uni-analyse-searchhot...
07:05:15.368 [阿里云:uni-admin-api]云函数uni-analyse-searchhot上传完成
07:05:17.486 [阿里云:uni-admin-api]正在上传云函数uni-portal...
07:05:19.229 [阿里云:uni-admin-api]云函数uni-portal上传完成
07:05:19.246 [阿里云:uni-admin-api]正在上传云对象uni-sms-co...
07:05:23.035 [阿里云:uni-admin-api]云对象uni-sms-co上传失败。失败原因:npm install执行失败.如果云函数目录下存在package-lock.json, node_modules可能会导致 npm install失败, 请删除后重试.
/bin/bash: npm: command not found

2023-06-06 07:11 负责人:DCloud_uniCloud_CRL 分享
已邀请:
DCloud_uniCloud_CRL

DCloud_uniCloud_CRL

是mac环境吗?看下你的默认终端是不是bash

  • 4***@qq.com (作者)

    默认终端是zsh,根据网络上的办法切换为bash了,但是还是报错,chsh -s /bin/bash

    2023-06-06 21:07

4***@qq.com

4***@qq.com (作者)

21:01:29.416 [阿里云:uni-admin-api]HBuilderX已支持通过命令行cli部署uniCloud资源, 详情参考: https://hx.dcloud.net.cn/cli/uniCloud [不再提示]
21:01:39.887 [阿里云:uni-admin-api]正在上传公共模块...
21:01:39.888 [阿里云:uni-admin-api]正在安装公共模块依赖...
21:01:43.763 [阿里云:uni-admin-api]公共模块上传失败。失败原因:npm install 执行失败。请检查node执行环境。 例:尝试安装npm并设置环境变量后,再次操作。
/bin/bash: npm: command not found

21:02:08.494 [阿里云:uni-admin-api]正在上传云函数uni-analyse-searchhot...
21:02:10.688 [阿里云:uni-admin-api]云函数uni-analyse-searchhot上传完成
21:02:10.694 [阿里云:uni-admin-api]正在上传云函数uni-portal...
21:02:14.695 [阿里云:uni-admin-api]云函数uni-portal上传完成
21:02:14.703 [阿里云:uni-admin-api]正在上传云对象uni-sms-co...
21:02:18.915 [阿里云:uni-admin-api]云对象uni-sms-co上传失败。失败原因:npm install执行失败.如果云函数目录下存在package-lock.json, node_modules可能会导致 npm install失败, 请删除后重试.
/bin/bash: npm: command not found

21:02:18.916 [阿里云:uni-admin-api]批量上传云函数结束。已上传2个云函数。未上传的云函数如下:uni-sms-co,uni-stat-cron,uni-stat-receiver,uni-upgrade-center,uni-captcha-co,uni-id-co,rewarded-video-ad-notify-url。

运行后注册成功超级管理员,但是登陆后无系统管理、uni统计和安全审计模块

要回复问题请先登录注册