javascript-ng new上的“使用工作区之前必须先加载它”

当我尝试运行ng new时,此代码向我显示

sarah @ sarah-Inspiron-5567 ~/Projects
└─ $▶ ls
sarah @ sarah-Inspiron-5567 ~/Projects
└─ $▶ ng new my-angular-app
Workspace needs to be loaded before it is used.
Error: Workspace needs to be loaded before it is used.
    at Workspace._assertLoaded (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/workspace/workspace.js:69:19)
    at Workspace._getTool (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/workspace/workspace.js:175:14)
    at Workspace.getCli (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/workspace/workspace.js:157:21)
    at Object.getConfiguredPackageManager (/usr/local/lib/node_modules/@angular/cli/utilities/config.js:131:32)
    at Object.getPackageManager (/usr/local/lib/node_modules/@angular/cli/utilities/package-manager.js:32:35)
    at NewCommand.createWorkflow (/usr/local/lib/node_modules/@angular/cli/models/schematic-command.js:156:47)
    at NewCommand.initialize (/usr/local/lib/node_modules/@angular/cli/models/schematic-command.js:39:14)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
sarah @ sarah-Inspiron-5567 ~/Projects
└─ $▶ 

有关我的环境的信息:

>节点:v10.15.3
> npm:6.4.1
> Angular-CLI:7.3.8
SO:Linux Mint 19.1

最佳答案
似乎根目录中的.angular-config.json文件导致了此问题.删除后,问题消失了:

rm ~/.angular-config.json

另见this issue

相关文章

kindeditor4.x代码高亮功能默认使用的是prettify插件,prett...
这一篇我将介绍如何让kindeditor4.x整合SyntaxHighlighter代...
js如何实现弹出form提交表单?(图文+视频)
js怎么获取复选框选中的值
js如何实现倒计时跳转页面
如何用js控制图片放大缩小