When i install karma-jasmine on mac,it gives me errors:
├── UNMET PEER DEPENDENCY jasmine-core#*
└── karma-jasmine#0.3.8
npm WARN karma-jasmine#0.3.8 requires a peer of jasmine-core#* but none was installed.
But,i have installed jasmine-core just before.
npm install jasmine-core -g
/Users/hbowang/.nvm/versions/node/v5.9.0/lib
└── jasmine-core#2.4.1
Any body can help me resolve this error?
I also got this error, but my package.json file is also missing so by creating package json file i am able to install jasmine-core and karma-jasmine.
For creating package.json file:
$ npm init
then after install jasmine-core:
$ npm install jasmine-core
$ npm install karma --save-dev
$ npm install karma-jasmine --save-dev
Hope it will help!!
you are installing jasmine-core with the global flag.
try installing it without the -g option and then retry.
notice the words UNMET PEER DEPENDENCY which suggests it wants it installed at the same level not globally maybe?
Related
When I run on my terminal the following command: npm install react-native I got this error.
npm WARN ajv-keywords#3.1.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native#0.55.4 requires a peer of react#16.3.1 but none is installed. You must install peer dependencies yourself.
npm WARN abdu#1.0.0 No description
npm WARN abdu#1.0.0 No repository field.
+ react-native#0.55.4
updated 1 package in 22.645s
Can someone tell me please, how to fix this Issues? or what does mean?
Thanks a lot.
If you start a project from scratch I recommend you to use create-native-app from the official react-native doc : https://facebook.github.io/react-native/docs/getting-started.html
npm install -g create-react-native-app
Then run the following commands to create a new React Native project called "AwesomeProject":
create-react-native-app AwesomeProject
cd AwesomeProject
npm start
otherwise you should simply install missing peer dependancies
npm i -S install ajv react#16.3.1
I'm getting the following warning when using 'create-react-app': npm WARN prefer global marked#0.3.6 should be installed with -g
How can I get rid of this warning?
I looked at "Question that may already have your answer" and didn't seem to find a precise answer. However, I'm new and may have overlooked the obvious.
My installs are:
$ npm -v
4.3.0
$ node --version
v7.0.0
$ npm list -g create-react-app
/usr/local/lib
└── create-react-app#1.2.1
$ npm list -g marked#
/usr/local/lib
└── marked#0.3.6
It looks to me that this package is already installed globally.
I ran the following:
$ sudo npm update -g create-react-app
which resulted in the following:
$ npm list -g create-react-app
/usr/local/lib
└── create-react-app#1.3.0
However, I still get:
npm WARN prefer global marked#0.3.6 should be installed with -g
Because that package includes the CLI.
Try to remove and install create-react-app to the newest version 1.3.0
npm install -g create-react-app
When I run
npm install -g react-native-cli
I see this error
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-installed/node_modules/readdir-scoped-modules requires graceful-fs#'^4.1.2' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/read-installed/node_modules/graceful-fs,
npm WARN unmet dependency which is version 3.0.8
I've tried updating graceful-fs by
npm update -g graceful-fs
Reacts website suggests using sudo if you have a permission error. This error doesn't seem permission related but if it is, I can certainly run sudo.
I'm an npm and node noob so please ask for any more info that will help.
I ran npm update -g and then was able to install the React CLI.
i tried to clean the cache and install it again but it says a warning unmet dependency
C:\Users\Ralph>npm cache clean
C:\Users\Ralph>npm install -g cordova
C:\Users\Ralph\AppData\Roaming\npm\cordova -> C:\Users\Ralph\AppData\Roaming\npm
\node_modules\cordova\bin\cordova
npm WARN unmet dependency C:\Users\Ralph\AppData\Roaming\npm\node_modules\phoneg
ap\node_modules\connect-phonegap requires shelljs#'0.2.6' but will load
npm WARN unmet dependency C:\Users\Ralph\AppData\Roaming\npm\node_modules\phoneg
ap\node_modules\shelljs,
npm WARN unmet dependency which is version 0.1.4
npm WARN unmet dependency C:\Users\Ralph\AppData\Roaming\npm\node_modules\phoneg
ap\node_modules\cordova\node_modules\plugman requires request#'2.22.0' but will
load
npm WARN unmet dependency C:\Users\Ralph\AppData\Roaming\npm\node_modules\phoneg
ap\node_modules\cordova\node_modules\request,
npm WARN unmet dependency which is version 2.21.0
cordova#4.2.0 C:\Users\Ralph\AppData\Roaming\npm\node_modules\cordova
├── underscore#1.7.0
├── q#1.0.1
├── nopt#3.0.1 (abbrev#1.0.5)
└── cordova-lib#4.2.0 (valid-identifier#0.0.1, osenv#0.1.0, properties-parser#0.
2.3, bplist-parser#0.0.6, mime#1.2.11, unorm#1.3.3, semver#2.0.11, shelljs#0.3.0
, rc#0.5.2, dep-graph#1.1.0, npm#1.4.28, elementtree#0.1.5, xcode#0.6.7, through
2#0.6.3, npmconf#0.1.16, glob#4.0.6, plist#1.1.0, tar#1.0.2, request#2.47.0, d8#
0.4.4, cordova-js#3.7.3)
thank you in advance
Cordova cannot run on the latest version of Node because it actually requires v10.x of Node. So, here is how I avoided the "Warning: unmet dependency" when installing Cordova:
> npm uninstall -g cordova
Use n (nvm for Windows) to downgrade an older version of Node (Windows users will need to downgrade and use):
> n 0.10.40
> npm cache clean
> npm install -g cordova
If you want to install Ionic, then in step 4, call the npm command to directly install ionic (with no #latest) instead of cordova, like this:
> npm install -g ionic
Note: Linux / OSX users may need to prepend the npm commands with "sudo".
Hello I recently tried installing grunt-command line interface according to the instructions on their website using the node package manager command
sudo npm install -g grunt-cli
It didnt work and I got the following errors
/usr/local/bin/grunt -> /usr/local/lib/node_modules/grunt-cli/bin/grunt
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/couch-login requires request#'~2.9.202' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/request,
npm WARN unmet dependency which is version 2.30.0
grunt-cli#0.1.13 /usr/local/lib/node_modules/grunt-cli
├── resolve#0.3.1
├── nopt#1.0.10 (abbrev#1.0.5)
└── findup-sync#0.1.3 (lodash#2.4.1, glob#3.2.11)
➜ ~
I'm not sure how i update this dependancy. Can anyone shed any light on this?
Try the following:
npm cache clean
npm install -g npm (update npm)
reinstall node.js completely (if all fails).
Please let me know if this works.