728x90
반응형
오랜만에 angular project를 만드려고 하니, 다음과 같은 에러가 발생했습니다.. ㅎㄷㄷ
[sy@localhost ~]$ ng new test_angular
? Would you like to add Angular routing? No
? Which stylesheet format would you like to use? CSS
Schematic input does not validate against the Schema: {"name":"test_angular","ve rsion":"7.3.8","routing":false,"style":"css"}
Errors:
Data path ".name" should match format "html-selector".
현재 Angular version은요.
[sy@localhost ~]$ ng version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 7.3.8
Node: 8.10.0
OS: linux x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.13.8
@angular-devkit/core 7.3.8
@angular-devkit/schematics 7.3.8
@schematics/angular 7.3.8
@schematics/update 0.13.8
rxjs 6.3.3
typescript 3.2.4
문제가 됐던 것은 바로 "test_angular"에 "_" 기호였습니다! 지원을 안했던 것.,,!
빠르게 바꿔서 생성하니..
[sy@localhost ~]$ ng new test-angular
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
CREATE test-angular/README.md (1028 bytes)
CREATE test-angular/.editorconfig (246 bytes)
CREATE test-angular/.gitignore (629 bytes)
CREATE test-angular/angular.json (3861 bytes)
CREATE test-angular/package.json (1311 bytes)
CREATE test-angular/tsconfig.json (435 bytes)
CREATE test-angular/tslint.json (1621 bytes)
CREATE test-angular/src/favicon.ico (5430 bytes)
...
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fse vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"} )
added 1099 packages in 63.83s
Successfully initialized git.
정상적으로 생성되네요! ^^*
오랜만에 포스팅이었습니다.
728x90
반응형