Error: Cannot find module ‘express‘

132 阅读1分钟

解决方案:把node_module整个文件夹删掉,然后npm clean cache,看下package.json里有没有express的依赖项,有的话直接npm install,没有的话 npm install express --save