Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find module "@ngrx/schematics" #593

xmlking opened this Issue Jun 15, 2018 · 5 comments


None yet
5 participants
Copy link

xmlking commented Jun 15, 2018

cannot create a new workspace with essential global NPM packages installed.


$ npm list -g --depth=0

├── @angular/cli@6.0.8
├── @nestjs/cli@5.2.0
├── @nrwl/schematics@6.1.0
└── npm@6.1.0

ng new myworkspacename --collection=@nrwl/schematics

Could not find module "@ngrx/schematics" from "/Developer/Work".
Error: Could not find module "@ngrx/schematics" from "/Developer/Work".
    at Object.resolve (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/core/node/resolve.js:141:11)
    at NodeModulesEngineHost._resolvePackageJson (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:28:21)
    at NodeModulesEngineHost._resolveCollectionPath (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/node-module-engine-host.js:69:40)
    at NodeModulesEngineHost.createCollectionDescription (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js:106:27)
    at SchematicEngine._createCollectionDescription (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/src/engine/engine.js:78:40)
    at SchematicEngine._createCollectionDescription (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/src/engine/engine.js:89:48)
    at SchematicEngine.createCollection (/usr/local/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/src/engine/engine.js:71:43)
    at Object.getCollection (/usr/local/lib/node_modules/@angular/cli/utilities/schematics.js:28:31)
    at NewCommand.getOptions (/usr/local/lib/node_modules/@angular/cli/models/schematic-command.js:193:41)
    at NewCommand.initialize (/usr/local/lib/node_modules/@angular/cli/commands/new.js:48:21)

This comment has been minimized.

Copy link

FrozenPandaz commented Jun 15, 2018

This is due to this issue here: angular/angular-cli#11026

  • Saving you the click: It actually seems to be an issue with one of their dependencies.

In the meantime, there are 2 workarounds

Workaround 1

Install @ngrx/schematics as well.

sudo npm i @nrwl/schematics -g
sudo npm i @ngrx/schematics -g
ng new workspace --collection @nrwl/schematics

Workaround 2

Use create-nx-workspace

sudo npm i @nrwl/schematics -g
create-nx-workspace workspace

We are not really recommending this as the primary method to create a workspace because ng new should work.


This comment has been minimized.

Copy link

xmlking commented Jun 16, 2018

I think it is time for nx to make ngrx optional


This comment has been minimized.

Copy link

ph55 commented Jun 18, 2018

This is pretty sad when you go through "Getting started" and got error, don't you think ?

I think README should be updated with create-nx-workspace way until bug fixed.


This comment has been minimized.

Copy link

davidreher commented Jul 18, 2018

Yep, just wanted to get going using Nx Guide. Does not work :/ Thankfully I found this issue ...


This comment has been minimized.

Copy link

bcabanes commented Oct 4, 2018

The Getting started with Nx has been updated and is accessible via

The create-nx-workspace is now the default way of creating new Nx projects.

@bcabanes bcabanes closed this Oct 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.