嗨,我用npm install --save firebase在ubuntu控制台上安装firebase,在安装过程中得到了下面的错误,我试图安装npm install protobufjs@6.11.2来摆脱这个错误,但它不起作用。该错误的含义是什么?
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.发布于 2021-06-30 23:11:20
因此,您需要在安装时使用--unsafe-perm标志。因此,完整的命令将类似于sudo npm install --unsafe-perm -g firebase
发布于 2021-05-09 16:06:58
我不确定为什么会发生这个错误,但我的理解是它与某种权限问题有关。
您可以通过添加前缀Sudo来解决此错误
sudo npm安装--保存firebas
https://stackoverflow.com/questions/67348819
复制相似问题