I have an ionic application.
ionic 4.7.0 requires rxjs#^5.0.1 so I installed an angular version to match that rxjs dependency, that is angular 5.2.10.
Now I am trying to install ngx-translate/core.
Installing the latest version will require having angular >= 6.0.0-rc0.
Is there a way to specify to npm to install the latest ngx-translate version which needs angular to be no more than 5.2.10? or is there a better way to handle this kind of problem with npm?
Related
I'm working on a personal Vue 2 project and I need to update the vue-typeahead-bootstrap package from 2.12.0 to 2.13.0, but only the 2.12.0 is published on NPM. I really need the updates included on the 2.13.0.
How can I install a package from github without NPM?
you can install a GitHub repo with a tag:
npm install github:mattzollinhofer/vue-typeahead-bootstrap#2.13.0
I am having trouble with this error, my project need run angular/cli version 1.7.4 and Nodejs 6.10.3 .But the past I used angular cli version 6 and now I want to downgrade to angular cli 1.7.4 but I don't know how to downgrade angular cli version 6 at my global. I try to use npm uninstall -g #angular/cli and then I install the version I want by command npm install -g #angular/cli#1.7.4 but when I check ng -v it's still have a error in picture
P/S: I were updated my npm to latest version to make sure can remove angular cli version but still don't work
Keep your global package running at the highest version. If a project needs CLI 1.x, use the npm run commands instead.
Any npm commands run use the project's CLI, not your global version.
I have installed react-native-router-flux for my learning project. i need to know what is the exact version of that, so on my project folder I used react-native-router-flux -version but it didn't work. how can i get what version is that via CMD?
If you are using npm as a package manager, you can type npm list react-native-router-flux. Similarly, if you are using yarn you can type yarn list react-native-router-flux.
You can use yarn outdated or npm outdated to see your package that are out of date. if a package is not in this list it means that you are using the last version of that package.
By using yarn outdated you can see the current version, wanted version and the latest version of each package.
Right now, the default version of Webpack installed with an npm install is is 1.14.0. Should i be using version 2 of Webpack?
Why some npm packages for ember-cli (like ember-cli-simple-auth or ember-cli-simple-auth-token) needs to be installed with the following two statements
npm install --save-dev ember-cli-simple-auth-token
ember generate simple-auth-token
?
I don't actually understand the second one which apparently simply add a bower dependency:
bash
me#imac1 ~/dev/wishhhh/ember $ ember generate simple-auth-token
version: 0.1.2
installing
Installing browser packages via Bower...
cached git://github.com/simplabs/ember-simple-auth-component.git#0.6.7
Installed browser packages via Bower.
Why do I need it?
You are correct in that all it does is install a bower package.
The reason this is requires is it prevents duplicate bower dependencies in your app. Early in addon development, people were installing bower components with an npm postInstall hook. While this worked, it added a lot of extra file size and possible conflicting bower dependencies.
This is the current pattern that addon developers are using to include bower dependencies in your project. This will likely be changed in the future but that is why for now.
(Answered referencing ember-cli 0.1.2)