无法在 angular-cli 项目中使用新命令

Cannot use new command inside angular-cli project

很有可能 angular 项目是在 mac osx 的主文件夹中意外创建的。所以每次我尝试使用 angular-cli 创建一个新项目时,我都会收到 "You cannot use the new command inside an angular-cli project"。我已经删除了所有与脚手架项目相关的文件,但错误仍然存​​在。是否有任何基础文件需要删除才能解决此错误?

父目录中的某处是 Angular-Cli 项目,或者 ng init 是 运行。您确实已经进入文件结构并找到 node_modules 文件夹并将其与任何关联的 angular-cli 生成的文件(tslint.json、src 文件夹、protractor.conf.js、node_modules 文件夹,README.md,angular-cli.json,e2e 文件夹,karma.conf.js,package.json,.npm/ 文件夹)。

我试图添加新的 angular 应用程序我使用 CLI.But 我有 "package.json" node_modules 在我创建新应用程序文件夹的同一文件夹中,删除后这个文件和 folder.it 对我有用。