node升级后npm工作报错如下:
npm ERR! Cannot find module 'internal/fs'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!
npm ERR! Please include the following file with any support request:
npm ERR! /Users/i318043/z/react/user-dashboard/npm-debug.log
解决办法如下(mac):改为旧版本node,安装npm,在将node更新到稳定版。
$ sudo n 6.9.1
$ sudo npm -g install npm@next
$ sudo n stable
本文介绍了在Node.js升级后遇到的npm错误“Cannot find module 'internal/fs'”及其解决方案。通过回滚到旧版本Node.js并安装npm,再更新Node.js到稳定版的方法解决了这一问题。
574

被折叠的 条评论
为什么被折叠?



