├── UNMET PEER DEPENDENCY generator-karma#>=0.9.0 - npm

So basically I want to understand why when I run npm install sass-loader node-sass --save-dev I get this error
├── UNMET PEER DEPENDENCY generator-karma#>=0.9.0
However it's clear that Karma is installed since when I run npm install generator-karma I see that :
└─┬ generator-karma#2.0.0 <--- Which mean karma is there...
└─┬ yeoman-generator#0.22.6
├── async#1.5.2
...
I've read answer explaining I should use npm install -g grunt-cli bower yo generator-karma generator-angular but this is not helping much.
Should I uninstall and reinstall a clean node_modules ?

npm no longer installs module dependencies automatically. That means you have to install the dependencies modules yourself. Basically if you run npm install generator-karma#>=0.9.0 and then run the your previous npm install command you should be good to go.

Related

npm uninstall gives no error, but also doesn't remove package?

I want to remove package #rollup/plugin-graphql#1.1.0 but npm uninstall simply doesn't remove it:
Check installed packages:
npm list --depth=0
├── #apollo/client#3.5.8
├── #rollup/plugin-graphql#1.1.0
// some more packages
Remove package:
npm uninstall #rollup/plugin-graphql#1.1.0
up to date, audited 334 packages in 1s
53 packages are looking for funding
run `npm fund` for details
Check installed packages again:
npm list --depth=0
├── #apollo/client#3.5.8
├── #rollup/plugin-graphql#1.1.0 // <-- still here!
// some more packages
What's going on here? packages.json also doesn't get changed.
I am on npm 8.3.0, node 16.13.1

Npm installed in npm global?

So I'm trying to see what npm packages I have installed globally using this command,
$ npm list -g --depth=0
and I see this,
/usr/local/lib
├── npm#5.5.1
Is npm installed as a package under npm itself? Or did I screw up somewhere and caused some kinda inception installation?
You can use npm ls command to view all the npm packages in your local system

npm install unmet dependencies

I'm trying to install vue-pagination-2 (https://github.com/matfish2/vue-pagination-2) in my application.
I run the following command:
npm install --save vue-pagination-2
but I keep getting this error:
my_project/myProject
├── UNMET PEER DEPENDENCY eslint#3.19.0
└── UNMET PEER DEPENDENCY vue#2.2.6
So I run:
npm install --save vue#2.2.6
But I get exactly the same error.
How can vue#2.2.6 be an unmet dependency since I'm installing exactly that package?
I have already tried to delete node_modules folder and running npm install again.
How can I solve this?
Moreover my package.json file already have those version installed:
"eslint": "^3.19.0",
"vue": "^2.2.6",

trying to install react-native-drawer but get errors

I'm trying to add react-native-drawer to my project.
but when I run:
npm install --save react-native-drawer
I get:
├── UNMET PEER DEPENDENCY react-native#0.41.1
└── react-native-drawer#2.3.0
npm WARN rn-drawer#1.1.3 requires a peer of react-native#^0.4.0 but none was installed.
I tried several actions people recommended like erasing my node_modules directory, or upgrading npm to the latest, or trying to install this module in a different project, but nothing helped. I can hardly believe that what is being implied here is that I simply have a version of react-native too new for this module.
my react native version is:
react-native-cli: 1.3.0
react-native: 0.41.1
my npm version is: 4.3.0
thanks!
It looks like you accidentally installed rn-drawer on your
package.json.
Just run:
npm uninstall --save rn-drawer

Using npm to install Ionic Cloud but get error about Jasmine

I am running this command to add Ionic Cloud to my project:
npm install --save #ionic/cloud-angular
But I get this error:
npm WARN angularfire2#2.0.0-beta.6 requires a peer of #types/jasmine#^2.5.36 but none was installed.
What do i need to do to get Jasmine installed? I assume this is what I need to do.
I have tried:
npm install --save jasmine
But this gives me:
npm install --save jasmine
ionic-hello-world# /Users/chris/Documents/ionic/wurk
├── UNMET PEER DEPENDENCY #types/jasmine#^2.5.36
└── jasmine#2.5.2
npm WARN angularfire2#2.0.0-beta.6 requires a peer of #types/jasmine#^2.5.36 but none was installed.
install #types/jasmine
npm install #types/jasmine --save
see: https://www.npmjs.com/package/#types/jasmine