运行node出现“operation not permitted”错误的解决办法

Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_global'
Error: EPERM: operation not permitted, mkdir 'C:\Program Files\nodejs\node_global'

出现operation not permitted 应该是windows系统下的权限问题。
解决方法是:同时按下win+x,然后选择命令提示符(管理员),在里面运行命令就好了。


版权声明:本文为lixru123原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。