[uni-id-co/ac1cd36d1705027559666136345/3ms/ERROR] uni-id-co缺少依赖,请在uniCloud/cloudfunctions/uni-id-co目录执行 npm install 安装依赖
[uni-id-co/ac1cd36d1705027559666136345/4ms/ERROR] Cannot find module 'lodash.merge'
Error: Cannot find module 'lodash.merge'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/tmp/function/common/utils.js:175:3)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
请求响应状态: fail
- 发布:2024-01-12 11:00
- 更新:2024-03-11 14:15
- 阅读:1197
产品分类: uniCloud/App
操作步骤:
预期结果:
[uni-id-co/ac1cd36d1705027559666136345/3ms/ERROR] uni-id-co缺少依赖,请在uniCloud/cloudfunctions/uni-id-co目录执行 npm install 安装依赖
[uni-id-co/ac1cd36d1705027559666136345/4ms/ERROR] Cannot find module 'lodash.merge'
Error: Cannot find module 'lodash.merge'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/tmp/function/common/utils.js:175:3)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
请求响应状态: fail
[uni-id-co/ac1cd36d1705027559666136345/3ms/ERROR] uni-id-co缺少依赖,请在uniCloud/cloudfunctions/uni-id-co目录执行 npm install 安装依赖
[uni-id-co/ac1cd36d1705027559666136345/4ms/ERROR] Cannot find module 'lodash.merge'
Error: Cannot find module 'lodash.merge'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/tmp/function/common/utils.js:175:3)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
请求响应状态: fail
实际结果:
[uni-id-co/ac1cd36d1705027559666136345/3ms/ERROR] uni-id-co缺少依赖,请在uniCloud/cloudfunctions/uni-id-co目录执行 npm install 安装依赖
[uni-id-co/ac1cd36d1705027559666136345/4ms/ERROR] Cannot find module 'lodash.merge'
Error: Cannot find module 'lodash.merge'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/tmp/function/common/utils.js:175:3)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
请求响应状态: fail
[uni-id-co/ac1cd36d1705027559666136345/3ms/ERROR] uni-id-co缺少依赖,请在uniCloud/cloudfunctions/uni-id-co目录执行 npm install 安装依赖
[uni-id-co/ac1cd36d1705027559666136345/4ms/ERROR] Cannot find module 'lodash.merge'
Error: Cannot find module 'lodash.merge'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/tmp/function/common/utils.js:175:3)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
请求响应状态: fail
package-lock.json package.json中"lodash.merge": "^4.6.2" 改为"lodash.merge": "4.6.2" 然后重新上传即可 我估计^是标记为已安装,去掉并重新上传就自动重新安装该依赖了
说明你账户非管理员账户,无法执行npm安装,开通一下命令行的权限就行,在命令行输入set-ExecutionPolicy RemoteSigned。 https://blog.csdn.net/qq_18798149/article/details/135774228
徳傲 (作者)
坐等官方回复吧
2024-01-18 14:24
5***@qq.com
回复 徳傲: 请问 你后来创建admin都顺利了吗?
2024-03-11 14:16