To install it, you can run: npm install --save mockjs 拜无忧 2021-07-22 481 这个错误是没有安装mockjs 下面代码直接终端运行就行了 cnpm install --save-dev mockjs