首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何安装npm lame raspberry pi 0

如何安装npm lame raspberry pi 0
EN

Stack Overflow用户
提问于 2019-01-07 06:14:12
回答 1查看 791关注 0票数 0

我正在尝试在覆盆子pi 0上安装npm lame。我已经用谷歌搜索了所有的东西,但总是得到这个错误:

不知道还能做什么。

代码语言:javascript
复制
pi@raspberrypi:~/twotone $ sudo npm install lame

> lame@1.2.4 install /home/pi/twotone/node_modules/lame
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/twotone/node_modules/lame/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/pi/twotone/node_modules/lame/.node-gyp'
gyp ERR! System Linux 4.14.79+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/twotone/node_modules/lame
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm WARN twotone@1.0.0 No description

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lame@1.2.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the lame@1.2.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-01-06T22_12_04_380Z-debug.log

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-01-07 11:03:59

您可能需要将--unsafe-perm添加到npm install命令

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

https://stackoverflow.com/questions/54066432

复制
相关文章

相似问题

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