Cannot find module ‘fs/promises‘ 解决方案

博主cnpm 更新依赖的时候报错的

博主环境:win10 /node 12.18.4

解决方案

1、删除已安装的cnpm版本:

npm uninstall -g cnpm

2、安装低版本cnpm

npm install [email protected] -g --registry=https://registry.npm.taobao.org

猜你喜欢

转载自blog.csdn.net/xuelang532777032/article/details/128445193