小编Fut*_*Web的帖子

Angular Nativescript 如何修复 ng gc 上的错误?

不久之前,我使用 angular - nativescript 创建了项目。我只使用了文档中的命令,安装后我试图运行这个命令:

ng generate component home 
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

发生未处理的异常:找不到模块 '@schematics/angular/utility/parse-name' 有关更多详细信息,请参阅“C:\Users\andri\AppData\Local\Temp\ng-JFv0M5\angular-errors.log”。

更多细节 :

[错误] 错误:在 Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) at Function.Module._load (internal/ modules/cjs/loader.js:508:25) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:22:18) at Object . (C:\Users\andri\AppData\Roaming\npm\node_modules@nativescript\schematics\src\generate\component\index.js:6:22) 在 Module._compile (internal/modules/cjs/loader.js:701) :30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10) at Module.load (internal/modules/cjs/loader.js:600:32) at tryModuleLoad (internal /modules/cjs/loader.js:539:12) 在 Function.Module._load (internal/modules/cjs/loader.js:531:3)

我该如何解决 ?

我的信息:

? Component nativescript has 6.0.3 version and is up to date.
? Component tns-core-modules has 6.0.7 version and is up to date.
? Component tns-android has 6.0.2 …
Run Code Online (Sandbox Code Playgroud)

nativescript angular

3
推荐指数
1
解决办法
6775
查看次数

标签 统计

angular ×1

nativescript ×1