开发uniapp的uni-id的时候出现这个错误:Cannot find module !lodash.merg
Require stack:
- D:project\uniappProject\NewsApplication1\PersonalCloudNewsApplication\uni modules uni-id-pages\uniCloud\cloudfunctions uni-id-co\common\utils.js
看了一堆文章,有运行npm install lodash,也有在D:\project\uniappProject\NewsApplication1\PersonalCloudNewsApplication\uni_modules\uni-id-pages\uniCloud\cloudfunctions\uni-id-co目录下运行npm install
运行npm install这个方法是可以的,但也有一些运行之后是报错的,但是其实只需要用管理员命令窗口在uni_modules\uni-id-pages\uniCloud\cloudfunctions\uni-id-co这个目录来运行npm install就可以了