新下载的项目 没有运行npm install 直接拷贝原来已经运行过的node_modules文件夹到新项目。
然后运行压缩构建
npm run && ng build --prod --build-optimizer && gzipper compress ./www
报错:
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
An unhandled exception occurred: ENOTEMPTY: directory not empty, rmdir 'E:\webview\payDataService\www'
See "C:\Users\ADMINI~1\AppData\Local\Temp\ng-5IdZX9\angular-errors.log" for further details.
解决办法:
删除项目目录下面的www文件即可运行成功: