安装了nodejs后在命令行运行npm报错

安装了nodejs后在命令行运行npm报错:Error: Cannot find module 'internal/util/types'

解决方法:删除目录“C:UsersmengxiaoboAppDataRoaming pm ode_modules”下的npm文件夹

原文地址:https://www.cnblogs.com/mxyr/p/9238802.html