首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >这个错误是什么意思(protobufjs@6.11.2 postinstall:` `node scripts/postinstall`)?

这个错误是什么意思(protobufjs@6.11.2 postinstall:` `node scripts/postinstall`)?
EN

Stack Overflow用户
提问于 2021-05-02 01:04:43
回答 2查看 556关注 0票数 2

嗨,我用npm install --save firebase在ubuntu控制台上安装firebase,在安装过程中得到了下面的错误,我试图安装npm install protobufjs@6.11.2来摆脱这个错误,但它不起作用。该错误的含义是什么?

代码语言:javascript
复制
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! protobufjs@6.11.2 postinstall: `node scripts/postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the protobufjs@6.11.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
EN

回答 2

Stack Overflow用户

发布于 2021-06-30 23:11:20

因此,您需要在安装时使用--unsafe-perm标志。因此,完整的命令将类似于sudo npm install --unsafe-perm -g firebase

票数 2
EN

Stack Overflow用户

发布于 2021-05-09 16:06:58

我不确定为什么会发生这个错误,但我的理解是它与某种权限问题有关。

您可以通过添加前缀Sudo来解决此错误

sudo npm安装--保存firebas

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67348819

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档