Angular-cli: Cannot find module '@schematics/angular/utility/dependencies'

Created on 27 Mar 2019  路  15Comments  路  Source: angular/angular-cli

when i run this commande ng add @nguniversal/express-engine --clientProject angular.io-example
i get this result
image

Most helpful comment

Why was this closed?

All 15 comments

wait? what is the solution for this problem because i'm facing the same situation

Installing packages for tooling via npm. Cannot find module '@schematics/angular/utility/dependencies' Error: Cannot find module '@schematics/angular/utility/dependencies' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:613:15) at Function.Module._load (internal/modules/cjs/loader.js:539:25) at Module.require (internal/modules/cjs/loader.js:667:17) at require (internal/modules/cjs/helpers.js:20:18) at /Users/azri/Desktop/Development/lion-dashboard/node_modules/@nguniversal/express-engine/schematics/install/index.js:34:26 at /Users/azri/Desktop/Development/lion-dashboard/node_modules/@nguniversal/express-engine/schematics/install/index.js:14:17 at Object.<anonymous> (/Users/azri/Desktop/Development/lion-dashboard/node_modules/@nguniversal/express-engine/schematics/install/index.js:20:3) at Module._compile (internal/modules/cjs/loader.js:738:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10) at Module.load (internal/modules/cjs/loader.js:630:32)

Getting the same issue

Still, I am getting the same error.

Getting the same issue.

Why was this closed?

same issue hete.

@alan-agius4 It would be nice if you wrote why you close issue.

Getting the same issue? Any help so far or any solution?

Got the same issue? Any help for the server-side-rendering?

i am also getting same issue while doing ssr.

Issue was closed as it doesn't follow the issue template. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.

If the problem persists in version 8.3, please file a new issue and ensure you provide all of the required information when filling out the issue template.

ng add @nguniversal/express-engine@^7.1.0 --clientProject project-name
if you use angular 7.1.0 that would help to resolve that issue, angular and express-engine versions should be the same.

please have a try with following commands.
npm i @nguniversal/express-engine
ng generate universal --client-project

ng add @nguniversal/express-engine@^7.1.0 --clientProject project-name
if you use angular 7.1.0 that would help to resolve that issue, angular and express-engine versions should be the same.

It works for me. Angular CLI: 7.1.4
Node: 8.11.2
OS: win32 x64
Angular:
...

Package Version

@angular-devkit/architect 0.11.4
@angular-devkit/core 7.1.4
@angular-devkit/schematics 7.1.4
@schematics/angular 7.1.4
@schematics/update 0.11.4
rxjs 6.3.3
typescript 3.1.6

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings