BrowserslistError: Unknown version 67 of android

Unknown version 67 of android

在npm run build时出现的错误。
解决方法是升级依赖中的:
"@angular-devkit/build-angular" "@angular-devkit/build-ng-packagr"

详细步骤:
1. 删​​除整个node_modules目录
(可以使用npm install rimraf -g,然后执行rimraf node_modules)
3. 从根目录手动删除package-lock.json
4. 确保package.json中引用了最新的@ angular-devkit项目:
"@angular-devkit/build-angular": "^0.801.3", 
"@angular-devkit/build-ng-packagr": "^0.801.3",
5. 最后npm install

方法转载自BrowserslistError:未知版本的Android 67 #1411


更多内容欢迎访问 lipk.org

你可能感兴趣的:(ng-packagr,version,67,of,android,npm,run,build)