找不到在角度6中弃用的配置或获取/设置 [英] No config found or get/set have been deprecated in angular 6
本文介绍了找不到在角度6中弃用的配置或获取/设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
ng config --global defaults.styleExt=scss
错误:找不到配置
Error: config not found
ng set --global defaults.styleExt=scss
错误:不赞成使用get/set命令,而是使用config命令.
Error: get/set have been deprecated in favor of the config command.
已安装的软件包版本
ngular CLI:6.0.3
ngular CLI: 6.0.3
节点:8.11.1
角度:6.0.2
@ angular/cli 6.0.3
@angular/cli 6.0.3
@ ngtools/webpack 6.0.3
@ngtools/webpack 6.0.3
webpack 4.8.3
webpack 4.8.3
更新
以下命令给了我图片错误
The following command gave me an error in the image
ng config schematics.@schematics/angular:component '{ styleext: "scss"}'
推荐答案
ng set --global defaults.styleExt=scss
.
您应该使用:
ng config schematics.@schematics/angular:component '{ styleext: "scss"}'
如果要定位到特定项目(将{project}替换为项目名称):
If you want to target a specific project (replace {project} with your project's name):
ng config projects.{project}.schematics.@schematics/angular:component '{ styleext: "scss"}'
这篇关于找不到在角度6中弃用的配置或获取/设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文