-
-
Notifications
You must be signed in to change notification settings - Fork 24
ng new --collection=@nativescript/schematics test --shared #283
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
Comments
I had luck installing from Github rather than npm - looks like the fix is just not bundled in a release yet: npm install -g https://github.com/NativeScript/nativescript-schematics.git ng new --collection=@nativescript/schematics name --shared --style=scss |
@sgehly thank you very much! After generate new project, you still have to run |
Another workaround can be found in this answer (ideal for those who followed the documentation and don't want to start over):
|
Even after following @sgehly solution, and all the other fixes here and on stackoverfow, I couldn't get this to work and got error after error. I got stuck at
I want to specify that I am running on a mac, but the same issues appear when trying to run it on a node docker file. I tried it with different versions of node, angular, tns, etc. I am just giving up after more than 1 day spent on this (full of frustrations) and I am hopping that somebody here can point me to an older version that works. I presume that I would need to manually install specific versions of angular/node/etc. Thanks. EDIT: or maybe somebody has a git with a stable version of the shared template that I can just clone, that would be great. Thanks again. |
Fixed in latest release, please see here for instructions of use. |
Uh oh!
There was an error while loading. Please reload this page.
Environment
package.json create by the command (ng new --collection=@nativescript/schematics test --shared)
Describe the bug
After running ng new --collection=@nativescript/schematics test --shared project is created but the error appears:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @angular/http@~9.1.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'test'
npm ERR! notarget
ng --version giving me
@angular-devkit/architect 0.1000.0
@angular-devkit/core 10.0.0
@angular-devkit/schematics 10.0.0
@schematics/angular 10.0.0
@schematics/update 0.1000.0
rxjs 6.5.5
To Reproduce
Just run ng new --collection=@nativescript/schematics test --shared
Expected behavior
Created a project without bug
The text was updated successfully, but these errors were encountered: