Npm installing Karma-jasmine doesn't work - npm

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

Related

UNMET peer dependency after installing 2nd dependency

I am struggling to set up an environment, could someone take a look at these errors and let me know what they mean?
Thank you, I appreciate it more than you know.
npm ERR! peer dep missing: react#>=17.0.1, required by react-native-web#0.17.1
npm ERR! peer dep missing: react-dom#>=17.0.1, required by react-native-web#0.17.1
npm ERR! peer dep missing: react-native-gesture-handler#>= 1.5.0, required by react-navigation-stack#2.10.4
npm ERR! peer dep missing: react-native-screens#>=1.0.0 || >= 2.0.0-alpha.0 || >= 2.0.0-beta.0 || >= 2.0.0, required by react-navigation-stack#2.10.4
npm ERR! peer dep missing: react-navigation#^4.1.1, required by react-navigation-stack#2.10.4
peer dep missing means there are packages you have installed that depend on those missing dependencies to function properly. react-navigation-stack, for instance depends on a few other packages of which react-navigation is a core dependency to have. If react-navigation is not installed, react-navigation-stack will flag react-navigation as a missing dependency.
To fix this try one or all of the following till your issue is fixed
Go to your project level android directory and run ./gradlew clean then try building the project
If the problem persists, delete the node_modules folder and run npm install again to pull the required dependencies
If that doesn't work, run npm list and then resolve all UNMET DEPENDENCY issues by installing any dependency with the peer dep missing flag

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",

npm install angular material data table

I am on win 10.trying to install angular-material-data-table on my working folder.npm install angular-material-data-table --save.its gives me the following error...,
C:\xampp\htdocs\mission>npm install angular-material-data-table --save
npm WARN saveError ENOENT: no such file or directory, open
'C:\xampp\htdocs\mission\package.json' C:\xampp\htdocs\mission
+-- UNMET PEER DEPENDENCY angular#^1.4.0
+-- UNMET PEER DEPENDENCY angular-material#^1.0.0 `-- angular-material-data-table#0.10.10
npm WARN enoent ENOENT: no such file or directory, open
'C:\xampp\htdocs\mission\package.json' npm WARN
angular-material-data-table#0.10.10 requires a peer of angular#^1.4.0
but none was installed. npm WARN angular-material-data-table#0.10.10
requires a peer of angular-material#^1.0.0 but none was installed. npm
WARN mission No description npm WARN mission No repository field. npm
WARN mission No README data npm WARN mission No license field.
I guess you need to learn how to use npm:
Create an project.json file via npm init
Than add all required libraries:
npm install angular#1.4.7 --save
npm install angular-material#1.0.0 --save
After that you can install the module you need
npm install angular-material-data-table --save

Vue,js 2.0 -- Errors Incorrect when installing a package

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

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