maciejtreder / ng-toolkit

:star: Angular tool-box! Start your PWA in two steps! Add Serverless support for existing projects and much more
https://www.angular-universal-pwa.maciejtreder.com
MIT License
1.12k stars 157 forks source link

ng add @ng-toolkit/universal yields Instalation failed #387

Open elblasto420 opened 6 years ago

elblasto420 commented 6 years ago

I'm submitting a...


[x ] Bug report  
[ ] Feature request
[ ] Documentation issue or request

In package


[ ] @ng-toolkit/init
[ ] @ng-toolkit/serverless
[x] @ng-toolkit/universal

Current behavior

I tried installing ng-toolkit/universal by using the command stated in the tittle, but it does not install, instead it generates this message: Installing packages for tooling via npm. npm ERR! addLocal Could not install C:\Users\HP ProBook-655G1\Documents\Blog Piamer\Blog-Volk\node_modules\@ng-toolkit\universal\@ng-toolkit_utils@^1.1.39 npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\HP ProBook-655G1\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "--quiet" "@ng-toolkit/universal" npm ERR! node v8.11.3 npm ERR! npm v3.10.10 npm ERR! path C:\Users\HP ProBook-655G1\Documents\Blog Piamer\Blog-Volk\node_modules\@ng-toolkit\universal\@ng-toolkit_utils@^1.1.39 npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\HP ProBook-655G1\Documents\Blog Piamer\Blog-Volk\node_modules\@ng-toolkit\universal\@ng-toolkit_utils@^1.1.39' npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\HP ProBook-655G1\Documents\Blog Piamer\Blog-Volk\node_modules\@ng-toolkit\universal\@ng-toolkit_utils@^1.1.39' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\HP ProBook-655G1\Documents\Blog Piamer\Blog-Volk\npm-debug.log Package install failed, see above. Package install failed, see above.

Expected behavior

It should install no problem per Gary Simon´s tutorial https://coursetro.com/posts/code/155/Angular-6-SEO-Tutorial-from-Scratch---It's-Super-Simple-Now!

Minimal reproduction of the problem with instructions

Example repository

What is the motivation / use case for changing the behavior?

Environment


Angular CLI: 6.0.8
Node: 8.11.3
OS: win32 x64
Angular: 6.0.7
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.8
@angular-devkit/build-angular     0.6.8
@angular-devkit/build-optimizer   0.6.8
@angular-devkit/core              0.6.8
@angular-devkit/schematics        0.6.8
@angular/cli                      6.0.8
@ngtools/webpack                  6.0.8
@schematics/angular               0.6.8
@schematics/update                0.6.8
rxjs                              6.2.1
typescript                        2.7.2
webpack                           4.8.3


Browser:
- [x ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: XX  
- Platform:  

Others:

elblasto420 commented 6 years ago

Forgot to leave the steps:

  1. Created a new project with Angular CLI using ng new "Project Name"
  2. In the generated project added some components and templates
  3. Run ng add @ng-toolkit/universal, and fails
ghost commented 6 years ago

For me too.

maciejtreder commented 6 years ago

Does this issue occur with the latest version?

alvarotf commented 5 years ago

Same error today

alvarotf commented 5 years ago

Sorry, Works fine with the latest version of npm