我从 @angular/cli": "^6.0.8" 升级到 @angular/cli": "^6.1.0"。我也升级到
@nrwl/schematics": "^6.1.1"
现在,当我尝试使用命令生成库时,
ng g lib shared-feature-store --prefix=medsoft --tags=shared,experimental
...我收到以下错误:
Cannot find module '@schematics/angular/utility/route-utils'
Error: Cannot find module '@schematics/angular/utility/route-utils'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (J:\workspace\medsoft\node_modules\@nrwl\schematics\src\collection\library\index.js:13:21)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
我以前的版本运行良好。
希望你能帮忙。谢谢。
干杯