gpt4 book ai didi

ubuntu - Ubuntu 上的 Webstorm : npm install issues and permissions on folders

转载 作者:行者123 更新时间:2023-12-04 19:17:11 30 4
gpt4 key购买 nike

尝试将 bower 更新到当前版本时出现以下错误:

/usr/bin/npm install bower@1.6.5

Exit code: 243

Standard error:
npm ERR! Linux 3.16.0-51-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "bower@1.6.5"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! path /usr/lib/node_modules/bower
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall rmdir

npm ERR! Error: EACCES: permission denied, rmdir '/usr/lib/node_modules/bower'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, rmdir '/usr/lib/node_modules/bower']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'rmdir',
npm ERR! path: '/usr/lib/node_modules/bower' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES: permission denied, rmdir '/usr/lib/node_modules/bower'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES: permission denied, rmdir '/usr/lib/node_modules/bower']
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/lib/node_modules/bower' }
npm ERR! Linux 3.16.0-51-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "bower@1.6.5"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! path npm-debug.log.70f6a7ba731584486ee86965f4d50da8
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open

npm ERR! Error: EACCES: permission denied, open 'npm-debug.log.70f6a7ba731584486ee86965f4d50da8'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, open 'npm-debug.log.70f6a7ba731584486ee86965f4d50da8']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: 'npm-debug.log.70f6a7ba731584486ee86965f4d50da8' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /usr/lib/node_modules/npm-debug.log

如何让 Webstorm 使用 sudo 运行 npm?这个问题在 Webstorm 10 和新的 WS 11 中都存在。同时,Netbeans 绝对完美地工作,没有任何麻烦。

最佳答案

sudo chmod 777 -R /usr/lib/node_modules

尝试这个。目录删除错误将得到解决。
Solution Revised As Per the Requirement 1: 

始终在 sudo 模式下工作

工作前总是做 须藤-i
如果你是 super 用户那么只有你才能做系统中的所有事情
Solution Revised As Per the Requirement 2: 

始终通过命令 启动您的网络 Storm sudo/bin/sh/home/****/Desktop/WebStorm-139.1112/bin/webstorm.sh

关于ubuntu - Ubuntu 上的 Webstorm : npm install issues and permissions on folders,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33496995/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com