安装完node.js后,npm -v 报错。

TypeError: Class extends value undefined is not a constructor or null

1、卸载Node.js,并删除原安装目录下的node_modules文件夹,重新安装。

2、修改用户环境变量里的npm部分,修改为自己的安装路径。

原文链接:https://blog.csdn.net/weixin_46854241/article/details/138723653

更多推荐