nhandled rejection Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\node_cache npm ERR! cb() never called!

安装全局包时报错,之前已经遇到过,结果第二次又忘记解决方法,果然还是要记下来,好记性不如烂笔头哇

$ npm i electron -g
Unhandled rejection Error: EPERM: operation not permitted, open ‘C:\Program Files\nodejs\node_cache\_cacache\tmp\f23044b6‘
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>

这个错误是因为没有管理员权限,解决方法,右键点击开始菜单,选择以管理员身份运行,在打开的黑窗再继续安装就可以

OK,安装成功

nhandled rejection Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\node_cache npm ERR! cb() never called!

原文地址:https://www.cnblogs.com/steamed-twisted-roll/p/11628263.html

时间: 2024-10-12 16:22:54

nhandled rejection Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\node_cache npm ERR! cb() never called!的相关文章

&quot;npm ERR! Error: EPERM: operation not permitted&quot;问题解决

在基于macaca进行自动化测试的时候,遇到如下问题: E:\AutoTest\Macaca\LocalTEST\macaca-test-sample\macaca-test>macaca doctor   Node.js checklist:   node env: C:\Program Files\nodejs\node.exe  node version: v6.3.0   Android checklist:   JAVA version is `1.8.0_91`  JAVA_HOME

npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法

npm ERR! path E:\SouthernPowerGridProject\web_project\AutoOPS\autoops\node_modules\fsevents\node_modules\dashdash\node_modulesnpm ERR! code EPERMnpm ERR! errno -4048npm ERR! syscall scandirnpm ERR! Error: EPERM: operation not permitted, scandir 'E:\S

ERROR EPERM: operation not permitted, mkdir &#39;C:\Users\Administrator\Desktop\text\nuxt\basic\.nuxt\components&#39;

C:\Users\Administrator\Desktop\text\nuxt>cd basic C:\Users\Administrator\Desktop\text\nuxt\basic>npm run dev > [email protected] dev C:\Users\Administrator\Desktop\text\nuxt\basic > nuxt i Preparing project for development 10:04:25 i Initial b

ng add ng-zorro-antd 安装时报错 已经是管理员还需要权限Error: EPERM: operation not permitted, lstat &#39;C:\ngWorkspace\qd\node_modules\fsevents\node_modules&#39;

Error: EPERM: operation not permitted, lstat 'C:\ngWorkspace\qd\node_modules\fsevents\node_modules' ng add ng-zorro-antd -f fsevents 这个依赖安装不上 可以使用 -f 指令 强制安装 ng add ng-zorro-antd 安装时报错 已经是管理员还需要权限Error: EPERM: operation not permitted, lstat 'C:\ngWor

webstorm react项目报错:Error: EPERM: operation not permitted

webstorm上导入了react项目,执行npm run start 之后就报错, > cross-env APP_TYPE=site umi dev fs.js:114 throw err; ^ Error: EPERM: operation not permitted, open 'path\node_modules\.cache\@babel\register\.babel.7.2.2.development.json' at Object.openSync (fs.js:443:3)

cocoapods 安装报错 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj

cocoapods 安装报错 ERROR:  While executing gem ... (Errno::EPERM)     Operation not permitted - /usr/bin/xcodeproj 执行下面语句安装即可: sudo gem install -n /usr/local/bin cocoapods

安装Pod时提示ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/pod

环境:OSX EI 10.11.1 昨天切换gem源后,招待pod安装没有任何问题,也可以正常用$ gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/$ sudo gem install cocoapods 今天再使用的时候,在一个项目下执行pod install时半天死活没反应,无奈就ctrl+c了强制退出了.然后再执行的时候就出现错误: Library/Ruby/Site/2.0.0/rubyge

windows下安装kibana出 &quot;EPERM: operation not permitted

D:\kibana-5.0.0\bin>kibana-plugin install file:///x-pack-5.0.0.zip Attempting to transfer from file:///x-pack-5.0.0.zip Transferring 72364732 bytes.................... Transfer complete Retrieving metadata from plugin archive Extracting plugin archiv

Eclipse通过Maven构建时出现: Fatal error compiling: tools.jar not found: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre1.8.0_31\..\lib\tools.jar

错误: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project testtxannotation: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre1.8.0_31\..\lib\tools.jar 这种错误是偶然性的,构建几次可能出现一次