我在Instagram上试用了一个非官方的桌面应用程序,叫做Ramme。
当我调用npm install时,我遵循了说明。
> electron@2.0.2 postinstall /home/praz/igdm-master/node_modules/electron
> node install.js
/home/praz/igdm-master/node_modules/electron/install.js:47
throw err
^
Error: EACCES: permission denied, mkdir '/home/praz/igdm-master/node_modules/electron/electron-tmp-download-4691-1533027792561'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@2.2.0 (node_modules/7zip-bin-win):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-win@2.2.0: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-mac@1.0.1 (node_modules/7zip-bin-mac):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-mac@1.0.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@2.0.2 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@2.0.2 postinstall 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! /home/praz/.npm/_logs/2018-07-31T09_03_16_012Z-debug.log我得到了这个错误日志。我不知道如何在我的节点模块上获得电子?
对不起,我的英语不好。
发布于 2018-07-31 17:30:15
不是发布,
npm install您可以尝试执行以下命令吗?
npm install --unsafe-perm=true --allow-root希望这能有所帮助!
发布于 2018-07-31 17:14:14
对于windows:使用管理命令提示符进行npm安装
对于Linux:使用sudo
如果以上操作不起作用,请尝试此操作:
sudo npm install electron --unsafe-perm=true --allow-root发布于 2018-07-31 17:29:10
试着这样运行它
echo "yourRootPasswordHere" | npm install这样,您就可以尝试运行您的节点模块安装过程,从而使安装过程能够读取root密码并执行root操作。您的进程失败,因为它无法执行mkdir命令
https://stackoverflow.com/questions/51609578
复制相似问题