wechatMiniAppReverse icon indicating copy to clipboard operation
wechatMiniAppReverse copied to clipboard

执行【2.second】指令是报错了

Open andyge2014 opened this issue 2 years ago • 2 comments

第一步指令执行是成功的,第二步报“Error: Cannot find module 'uglify-es'” image

而且执行npm install uglify-es 也不成功: image

请教下怎么解决,多谢!

andyge2014 avatar Sep 25 '22 03:09 andyge2014

@andyge2014 解决了吗 我也遇到了

ddonano avatar Oct 18 '23 02:10 ddonano

自己安装 nodejs,https://nodejs.org/en/

然后安装一下这几个包

npm install esprima --save
npm install css-tree --save
npm install cssbeautify --save
npm install vm2 --save
npm install uglify-es --save
npm install js-beautify --save
npm install escodegen --save
npm install cheerio --save

在执行【2.second】指令时,不要用那个目录的 node,用你刚安装的 node

DrRyanHuang avatar Nov 17 '23 15:11 DrRyanHuang