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

npm serve fails because @angular-devkit/build-angular:dev-server is missing #4

Open
JuergenKosel opened this issue Jul 17, 2022 · 0 comments

Comments

@JuergenKosel
Copy link

Hello,

I have cloned this repository and tried then the descriptions in CT 9 to 12/2022.

But the step from CT 11/2022 page 150 fail.
The following is the output when I tried again:

cd C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> npm install -g @angular/cli
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

changed 219 packages, and audited 220 packages in 17s

25 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> npm install --location=global @angular/cli
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

changed 219 packages, and audited 220 packages in 10s

25 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> npm --version
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
8.14.0
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> ng serve --open
Node packages may not be installed. Try installing with 'npm install'.
Error: Could not find the '@angular-devkit/build-angular:dev-server' builder's node package.
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> git clean -fxd
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> ng new todo --defaulöts --routing --strict
Error: This command is not available when running the Angular CLI inside a workspace.
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> cd ..
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo> mkdir workspace


    Verzeichnis: C:\Users\juerg\OneDrive\Dokumente\ct-todo


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        17.07.2022     16:23                workspace


PS C:\Users\juerg\OneDrive\Dokumente\ct-todo> cd .\workspace\
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\workspace> ng new todo --defaulöts --routing --strict
Error: Unknown argument: defaulöts
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\workspace> ng new todo --defaults --routing --strict
? Would you like to share anonymous usage data about this project with the Angular Team at
Google under Googles Privacy Policy at https://policies.google.com/privacy. For more
details and how to change this setting, see https://angular.io/analytics. No
Global setting: disabled
Local setting: No local workspace configuration file.
Effective status: disabled
CREATE todo/angular.json (2912 bytes)
CREATE todo/package.json (1035 bytes)
CREATE todo/README.md (1058 bytes)
CREATE todo/tsconfig.json (863 bytes)
CREATE todo/.editorconfig (274 bytes)
CREATE todo/.gitignore (548 bytes)
CREATE todo/.browserslistrc (600 bytes)
CREATE todo/karma.conf.js (1421 bytes)
CREATE todo/tsconfig.app.json (287 bytes)
CREATE todo/tsconfig.spec.json (333 bytes)
CREATE todo/.vscode/extensions.json (130 bytes)
CREATE todo/.vscode/launch.json (474 bytes)
CREATE todo/.vscode/tasks.json (938 bytes)
CREATE todo/src/favicon.ico (948 bytes)cd C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> npm install -g @angular/cli
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

changed 219 packages, and audited 220 packages in 17s

25 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> npm install --location=global @angular/cli
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

changed 219 packages, and audited 220 packages in 10s

25 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> npm --version
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
8.14.0
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> ng serve --open
Node packages may not be installed. Try installing with 'npm install'.
Error: Could not find the '@angular-devkit/build-angular:dev-server' builder's node package.
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> git clean -fxd
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> ng new todo --defaulöts --routing --strict
Error: This command is not available when running the Angular CLI inside a workspace.
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> cd ..
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo> mkdir workspace


    Verzeichnis: C:\Users\juerg\OneDrive\Dokumente\ct-todo


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        17.07.2022     16:23                workspace


PS C:\Users\juerg\OneDrive\Dokumente\ct-todo> cd .\workspace\
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\workspace> ng new todo --defaulöts --routing --strict
Error: Unknown argument: defaulöts
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\workspace> ng new todo --defaults --routing --strict
? Would you like to share anonymous usage data about this project with the Angular Team at
Google under Googles Privacy Policy at https://policies.google.com/privacy. For more
details and how to change this setting, see https://angular.io/analytics. No
Global setting: disabled
Local setting: No local workspace configuration file.
Effective status: disabled
CREATE todo/angular.json (2912 bytes)
CREATE todo/package.json (1035 bytes)
CREATE todo/README.md (1058 bytes)
CREATE todo/tsconfig.json (863 bytes)
CREATE todo/.editorconfig (274 bytes)
CREATE todo/.gitignore (548 bytes)
CREATE todo/.browserslistrc (600 bytes)
CREATE todo/karma.conf.js (1421 bytes)
CREATE todo/tsconfig.app.json (287 bytes)
CREATE todo/tsconfig.spec.json (333 bytes)
CREATE todo/.vscode/extensions.json (130 bytes)
CREATE todo/.vscode/launch.json (474 bytes)
CREATE todo/.vscode/tasks.json (938 bytes)
CREATE todo/src/favicon.ico (948 bytes)
CREATE todo/src/index.html (290 bytes)
CREATE todo/src/main.ts (372 bytes)
CREATE todo/src/polyfills.ts (2338 bytes)
CREATE todo/src/styles.css (80 bytes)
CREATE todo/src/test.ts (749 bytes)
CREATE todo/src/assets/.gitkeep (0 bytes)
CREATE todo/src/environments/environment.prod.ts (51 bytes)
CREATE todo/src/environments/environment.ts (658 bytes)
CREATE todo/src/app/app-routing.module.ts (245 bytes)
CREATE todo/src/app/app.module.ts (393 bytes)
CREATE todo/src/app/app.component.html (23364 bytes)
CREATE todo/src/app/app.component.spec.ts (1067 bytes)
CREATE todo/src/app/app.component.ts (208 bytes)
CREATE todo/src/app/app.component.css (0 bytes)
√ Packages installed successfully.
    Directory is already under version control. Skipping initialization of git.
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\workspace> ng serve --open
Error: This command is not available when running the Angular CLI outside a workspace.
CREATE todo/src/index.html (290 bytes)
CREATE todo/src/main.ts (372 bytes)
CREATE todo/src/polyfills.ts (2338 bytes)
CREATE todo/src/styles.css (80 bytes)
CREATE todo/src/test.ts (749 bytes)
CREATE todo/src/assets/.gitkeep (0 bytes)
CREATE todo/src/environments/environment.prod.ts (51 bytes)
CREATE todo/src/environments/environment.ts (658 bytes)
CREATE todo/src/app/app-routing.module.ts (245 bytes)
CREATE todo/src/app/app.module.ts (393 bytes)
CREATE todo/src/app/app.component.html (23364 bytes)
CREATE todo/src/app/app.component.spec.ts (1067 bytes)
CREATE todo/src/app/app.component.ts (208 bytes)
CREATE todo/src/app/app.component.css (0 bytes)
√ Packages installed successfully.
    Directory is already under version control. Skipping initialization of git.
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\workspace> ng serve --open
Error: This command is not available when running the Angular CLI outside a workspace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant