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",
Related
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
DevTools tells me it has detected Vue 2.1.6
I tried to install a package and received these errors and I am unsure how to continue
> npm install vue2-google-maps --save
> /Users/jgravois/Documents/Code/_work/teamsite53 ├── UNMET PEER
> DEPENDENCY marker-clusterer-plus#^2.1.4 ├── UNMET PEER DEPENDENCY
> vue#2.0.7 invalid └── vue2-google-maps#0.5.2
>
> npm WARN enoent ENOENT: no such file or directory, open
> '/Users/jgravois/Documents/Code/_work/teamsite53/node_modules/fobject/package.json'
> npm WARN vue2-google-maps#0.5.2 requires a peer of vue#^2.1.0 but none
> was installed. npm WARN vue2-google-maps#0.5.2 requires a peer of
> marker-clusterer-plus#^2.1.4 but none was installed.
Make sure you install vue with save npm install vue --save
Try deleting the vue package from node_modules and run an npm install
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
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.
I just follow the instructions in there:
http://karma-runner.github.io/0.12/intro/installation.html
Karma has been installed correctly.
Though, I can't install karma-jasmine and karma-chrome-launcher. I am actually having a lot's of warnings about README:
npm WARN package.json abbrev#1.0.4 No README data
npm WARN package.json ansi#0.2.1 No README data
npm WARN package.json archy#0.0.2 No README data
npm WARN package.json asn1#0.1.11 No README data
...
and then a few unmet dependancies:
*
npm WARN unmet dependency /usr/lib/node_modules/block-stream requires inherits#'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream requires inherits#'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream-ignore requires inherits#'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream-npm requires inherits#'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/glob requires inherits#'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/npmconf requires inherits#'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/tar requires inherits#'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
*
Any idea where could that come from ?
Follow below steps to setup karma-jasmine environment
• Install nodejs
o Download nodejs suitable setup file from https://nodejs.org/download/ website.
o Install nodejs using setup file
• Installation of Karma and plugins using npm(node package manager)
o Open command prompt
o Traverse to project structure
cd ‘\path of project folder’
(path till folder which is having /src folder in it)
o Install Karma
npm install karma --save-dev
• New folder in project structure will get created named as ‘node_modules’
• If any warnings appear on command prompt ignore them
o Install browser plugins(optional)
npm install karma-jasmine karma-chrome-launcher --save-dev
• If any warnings appear on command prompt ignore them
o Install Karma command line interpreter globally
npm install -g karma-cli
• If any warnings appear on command prompt ignore them