Starts in:
0 DAY
16 HRS
9 MIN
11 SEC
Starts in:
0 D
16 H
9 M
11 S
Open Closed

Error in generate angular UI by CRUD Generator #1466


User avatar
0
tomasz.lewandowski@neuca.pl created

ABP Framework version: v4.3.2 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): yes Exception message and stack trace: When I try generate new crud entity i got error in suite log:

2021-06-10 21:54:43.815 +02:00 [INF] 8/8 - AngularUiGenerateWithSchematicsCommand started...
2021-06-10 21:54:43.820 +02:00 [INF] Running the Angular Schematics command:
npx "C:/Workspace/OrderManagementSystem/src/angular/.suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" app-pro Neuca.OrderManagementSystem "C:/Workspace/OrderManagementSystem/src/aspnet-core/.suite/entities/Sample.json"
2021-06-10 21:54:49.365 +02:00 [INF] Angular Schematics command failed.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:/Workspace/OrderManagementSystem/src/angular/.suite/schematics/node_modules/.bin/ng/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Workspace\OrderManagementSystem\src\angular\.suite\schematics\node_modules\.bin\ng\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\tomlewandowski\AppData\Local\npm-cache\_logs\2021-06-10T19_54_49_326Z-debug.log

2021-06-10 21:54:49.377 +02:00 [INF] 8/8 - AngularUiGenerateWithSchematicsCommand completed.          | Duration: 5561 ms.

2 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    probably the node_modules is not installed correctly.

    delete this folder => C:/Workspace/OrderManagementSystem/src/angular/.suite/schematics/node_modules

    open cmd in C:/Workspace/OrderManagementSystem/src/angular/.suite/schematics/ and run yarn

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06