Could not find module @schematics/angular when creating new project
See original GitHub issueSystem Win x64 OS Windows 7 Enterprise
Versions
Angular CLI: 1.6.5
Node: 9.2.0
OS: win32 x64
Angular: ...
Repro steps
npm -v
> 5.6.0
npm install -g @angular/cli@1.6.5
ng new marketdata
Observed behavior
Could not find module "@schematics/angular" from "C:\\Development".
Error: Could not find module "@schematics/angular" from "C:\\Development".
at Object.resolve (\\SysProf\AppData$\fewsts\AppData\Roaming\npm\node_module
s\@angular\cli\node_modules\@angular-devkit\core\node\resolve.js:140:11)
at NodeModulesEngineHost._resolvePackageJson (\\SysProf\AppData$\fewsts\AppD
ata\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\schematic
s\tools\node-module-engine-host.js:22:21)
at NodeModulesEngineHost._resolveCollectionPath (\\SysProf\AppData$\fewsts\A
ppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\schema
tics\tools\node-module-engine-host.js:43:36)
at NodeModulesEngineHost.createCollectionDescription (\\SysProf\AppData$\few
sts\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\@angular-devkit\s
chematics\tools\file-system-engine-host-base.js:102:27)
at SchematicEngine.createCollection (\\SysProf\AppData$\fewsts\AppData\Roami
ng\npm\node_modules\@angular\cli\node_modules\@angular-devkit\schematics\src\eng
ine\engine.js:46:40)
at Object.getCollection (\\SysProf\AppData$\fewsts\AppData\Roaming\npm\node_
modules\@angular\cli\utilities\schematics.js:37:31)
at Class.run (\\SysProf\AppData$\fewsts\AppData\Roaming\npm\node_modules\@an
gular\cli\tasks\schematic-get-options.js:11:41)
at Class.beforeRun (\\SysProf\AppData$\fewsts\AppData\Roaming\npm\node_modul
es\@angular\cli\commands\new.js:91:31)
at Promise.resolve.then (\\SysProf\AppData$\fewsts\AppData\Roaming\npm\node_
modules\@angular\cli\ember-cli\lib\cli\cli.js:138:24)
at <anonymous>
Desired behavior
Create fresh project in the directory that I was in.
Mention any other details that might be useful (optional)
Attempted fixes include winding back to 1.6.3
npm i -D @angular-devkit/core
npm i -g @angular-devkig/core
Note: This is since doing an install of Node and updgrading to cli 1.6.5
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Cannot find module '@schematics/angular/utility/project'
Seems like it's an ionic incompatibility with angular 10+. THIS WORKED FOR ME npm uninstall @schematics/angular npm install ...
Read more >Cannot find module '@schematics/angular/utility/parse-name'
I installed @nativescript/schematics@0.7.0 for my Nativescript project and tried to generate component using command its show me following error ...
Read more >Cannot find module nodemodule/@schematics/angular/utility ...
Fix: Cannot find module \nodemodules\@ schematics \ angular \utility\test.jsUse these steps to resolve the problem1. Uninstall package that you ...
Read more >How to fix Cannot find module '@schematics/angular/utility ...
If you are working on an angular application and find an issue like this. You can solve it using the trick given in...
Read more >Schematics for libraries - Angular
When you create an Angular library, you can provide and package it with schematics that integrate it with the Angular CLI. With your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It works, thanks a lot.
I resolved it by installing the @schematics/angular