NPM错误,同时安装angular度cli
我正在尝试重新安装angular-cli
工具以获取最新版本。 在安装之前,我确实升级了优雅的fs,强韧的cookies和lodash。 现在,当我尝试安装angular度cli全球它给了我这个错误:
(node: 7736) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
我很惊讶,因为它没有发生过。 我无法安装该版本的angular度cli。 我试图重新安装NodeJS 6.6.0。 此外,我试图谷歌的问题,但没有什么对我有用。 听到类似stream行的听众的问题,我感到惊讶。
在安装结束时,我得到这些错误:
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Flyrell\AppData\Roaming\npm\node_mo dules\angular-cli' -> 'C:\Users\Flyrell\AppData\Roaming\npm\node_modules\.angular-cli.DELETE' npm ERR! at moveAway (C:\Users\Flyrell\AppData\Roaming\npm\node_modules\npm\lib\install\action\f inalize.js:38:5) npm ERR! at destStatted (C:\Users\Flyrell\AppData\Roaming\npm\node_modules\npm\lib\install\actio n\finalize.js:27:7) npm ERR! at FSReqWrap.oncomplete (fs.js:123:15) npm ERR! npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Flyrell\AppData\Roaming\npm\node_mo dules\angular-cli' -> 'C:\Users\Flyrell\AppData\Roaming\npm\node_modules\.angular-cli.DELETE' npm ERR! at Error (native) npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Flyrell\AppData\Roaming\npm\node_m odules\angular-cli' -> 'C:\Users\Flyrell\AppData\Roaming\npm\node_modules\.angular-cli.DELETE' npm ERR! at moveAway (C:\Users\Flyrell\AppData\Roaming\npm\node_modules\npm\lib\install\action\f inalize.js:38:5) npm ERR! at destStatted (C:\Users\Flyrell\AppData\Roaming\npm\node_modules\npm\lib\install\actio n\finalize.js:27:7) npm ERR! at FSReqWrap.oncomplete (fs.js:123:15) npm ERR! npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Flyrell\AppData\Roaming\npm\node_mo dules\angular-cli' -> 'C:\Users\Flyrell\AppData\Roaming\npm\node_modules\.angular-cli.DELETE' npm ERR! at Error (native) 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! C:\Windows\system32\npm-debug.log npm ERR! code 1
我正在运行cmd.exe作为pipe理员,所以我真的找不到这个解决scheme可能是什么问题。 其他全球或本地安装是成功的。
我尝试了很多方法,但是在虚拟机上安装Windows 7并在其上安装了最新的Nodejs后 ,没有任何东西可以用于我。 然后使用npm我安装angular/ cli和一切正常工作,在Windows 7 🙂
即使在Windows 7中的实际电脑它运作良好,所以我想它有一些Windows,Mac或Linux版本的问题,Windows 7是最有效的… …
- 当为一个npm模块使用一个私有的git url时,如何configuration消费应用程序只使用模块的dist文件夹中的文件?
- 安装angular-cli
- 使用Angular-cli创build新项目时出错
- 客户端(angular度2)authentication,谷歌作为服务器(node.js)
- Docker与npm全局安装angular-cli构build时间长
- 来自NodeJS的Angular-Cli
- 为什么node-npm在安装@ angular / cli时失败,校验和失败?
- 安装angular / cli时出错 – 找不到:python2
- 使用jsonwebtoken在nodejs和angular cli中获取未经授权的方法