我在ubuntu可信任机器上全局安装了Angular / cli,但无法创建新项目:
vagrant@vagrant-ubuntu-trusty-64:~/projects/tools/angular-app$ ng -v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 6.1.3
Node: 10.7.0
OS: linux x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.7.3
@angular-devkit/core 0.7.3
@angular-devkit/schematics 0.7.3
@schematics/angular 0.7.3
@schematics/update 0.7.3
rxjs <error>
vagrant@vagrant-ubuntu-trusty-64:~/projects/tools/angular-app$ npm view @angular/cli
@angular/cli@6.1.3 | MIT | deps: 10 | versions: 157
CLI tool for Angular
https://github.com/angular/angular-cli
keywords: angular, Angular CLI, devkit, sdk, Angular DevKit, angular-cli
bin: ng
dist
.tarball https://registry.npmjs.org/@angular/cli/-/cli-6.1.3.tgz
.shasum: a4cc751c96423cea17628d94c1419d334d7adfbf
.integrity: sha512-S0uVQKKWETeX/mZ0WEZ2f+4xHArEtJ1hRl4GWKZEzU+vpptVnUXDDLC5aiN1ArfEcI1TShDsdhRSYSfccif2xA==
.unpackedSize: 509.7 kB
dependencies:
@angular-devkit/architect: 0.7.3 @angular-devkit/schematics: 0.7.3 @schematics/update: 0.7.3 rxjs: ^6.0.0 symbol-observable: ^1.2.0
@angular-devkit/core: 0.7.3 @schematics/angular: 0.7.3 opn: ^5.3.0 semver: ^5.1.0 yargs-parser: ^10.0.0
maintainers:
- angular <angular-core+npm@google.com>
- angular-cli <hansl@google.com>
dist-tags:
latest: 6.1.3 next: 6.2.0-beta.2
published 11 hours ago by angular <devops+npm@angular.io>
vagrant@vagrant-ubuntu-trusty-64:~/projects/tools/angular-app$ ng new dsi-ui
Tree type is not supported.
我有一个空文件夹:angular-app,我想在其中创建新项目,但是我不断收到错误消息:Tree type is not supported
。
我关注了github问题:https://github.com/angular/angular-cli/issues/11707,但它对我不起作用。我也尝试卸载angular,清除npm缓存并再次安装,但是仍然出现相同的错误。 有什么线索吗?