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

Error after running ng add on fresh CLI project #513

Closed
jeffbcross opened this issue May 22, 2018 · 6 comments · Fixed by #527
Closed

Error after running ng add on fresh CLI project #513

jeffbcross opened this issue May 22, 2018 · 6 comments · Fixed by #527
Assignees

Comments

@jeffbcross
Copy link
Member

  • Mac
  • Node 9.11.1
  • Angular CLI version 6.0.3
  • Nx version 6.0.2
  1. I created a new Angular CLI project: ng new marbles.
  2. Then I added Nrwl schematics: ng add @nrwl/schematics. But got an error:
Mac-Pro:marble jeffbcross$ ng add @nrwl/schematics
Installing packages for tooling via npm.
+ @nrwl/[email protected]
added 51 packages in 9.151s
Installed packages for tooling via npm.
EISDIR: illegal operation on a directory, read
@jeffbcross
Copy link
Member Author

screen shot 2018-05-22 at 4 15 16 pm

This is my git status after running ng add.

@ffriedl89
Copy link

Got exactly the same error on

  • Windows 10
  • Node 8.11.2
  • Angular CLI 6.0.3
  • Nx version 6.0.2

@sanyashvets
Copy link

same error

Nx: 6.0.2
Angular CLI: 6.0.3
Node: 8.11.1
OS: linux x64 (Ubuntu 17.10)
Angular: 6.0.3
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.3
@angular-devkit/build-angular     0.6.3
@angular-devkit/build-optimizer   0.6.3
@angular-devkit/core              0.6.3
@angular-devkit/schematics        0.6.3
@ngtools/webpack                  6.0.3
@schematics/angular               0.6.3
@schematics/update                0.6.3
rxjs                              6.2.0
typescript                        2.7.2
webpack                           4.8.3

@xban1x
Copy link

xban1x commented May 25, 2018

Yup, same here.

Windows 10
Node 9.11.1
Angular CLI 6.0.3
Nx version 6.0.2

@agusdutra
Copy link

Hi @FrozenPandaz , I've been using Nx on some projects, but now I'm trying to add support for an existing project.

I've been looking around the related issues but didn't found it was really fixed.
I'm not getting any error, but the workspace isn't created at all.

I watched this video: and as it shows the command ng add @nrwl/schematics should update my file structure to handle de apps/app and apps/libs structure, but none of this happens.

Only this files are updated/created:

CREATE jest.config.js (275 bytes)
UPDATE angular.json (3586 bytes)
UPDATE package.json (1562 bytes)

The steps to reproduce are the same as the original issue by @jeffbcross

  1. Create a new Angular CLI project: ng new marbles.
  2. Add Nrwl schematics: ng add @nrwl/schematics.

Expected: an apps and libs structure to be created, the default app and e2e to be inside apps/, an nx.json file and other things.

Result: jest.config.ts is created, angular.json and package.json updated.

This happened to me with an existing project with @angular/cli 7.2.0 and now with a new one with 8.0.1.

If you execute those 2 commands and get the expected file structure, please let me know, I have no idea what I'm missing, but this command doesn't seem to be working at all.

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants