在Visual Studio Code的终端控制台里面安装npm install fetch-jsonp模块的时候报出这样的错误:
PS D:\react\reactdemo> npm install fetch-jsonp
Unhandled rejection Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\node_cache\_cacache\tmp\ddf500a8'
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
PS D:\react\reactdemo>
这个时候,需要打开cmd,以管理员身份运行,进入到d盘的React项目里面,运行npm install fetch-jsonp,安装fetch-jsonp模块,即可
后面总结了一下,其实最好用的办法就是在Visual Studio Code的终端控制台运行命令:
cnpm install fetch-jsonp --save
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有