收藏
回答

上传云函数经常报错

问题模块 框架类型 问题类型 终端类型 AppID 基础库版本
云开发 小程序 Bug 客户端 wx5f4ce9f62dfb38f9 2.4.1



Install Dependency Error: install dependency failed: npm WARN locking Error: EACCES: permission denied, open '/data/npm_cache/_locks/staging-2d004b9b68b2b072.lock' npm WARN locking /data/npm_cache/_locks/staging-2d004b9b68b2b072.lock failed { Error: EACCES: permission denied, open '/data/npm_cache/_locks/staging-2d004b9b68b2b072.lock' npm WARN locking stack: 'Error: EACCES: permission denied, open \'/data/npm_cache/_locks/staging-2d004b9b68b2b072.lock\'', npm WARN locking errno: -13, npm WARN locking code: 'EACCES', npm WARN locking syscall: 'open', npm WARN locking path: '/data/npm_cache/_locks/staging-2d004b9b68b2b072.lock' } npm WARN admin@1.0.0 No description npm WARN admin@1.0.0 No repository field. npm ERR! path /data/npm_cache/_locks/staging-2d004b9b68b2b072.lock npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall open npm ERR! Error: EACCES: permission denied, open '/data/npm_cache/_locks/staging-2d004b9b68b2b072.lock' npm ERR! { Error: EACCES: permission denied, open '/data/npm_cache/_locks/staging-2d004b9b68b2b072.lock' npm ERR! stack: 'Error: EACCES: permission denied, open \'/data/npm_cache/_locks/staging-2d004b9b68b2b072.lock\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'open', npm ERR! path: '/data/npm_cache/_locks/staging-2d004b9b68b2b072.lock' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /data/npm_cache/_logs/2018-12-10T08_47_17_874Z-debug.log


上传云函数经常报错

最后一次编辑于  2018-12-10  (未经腾讯允许,不得转载)
回答关注问题邀请回答
收藏

1 个回答

  • MasonLu-腾讯云
    MasonLu-腾讯云
    2018-12-11

    我也遇到了,反馈说是服务端npm权限不对,已经修正了,可以再上传试下看

    2018-12-11
    赞同
    回复