No matching version found for yargs#^17.2.1 - javascript

I am facing this error, after pull when I am trying to do npm install command.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for yargs#^17.2.1.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'pl201260-pi-wm-experience-platform'
npm ERR! notarget
My package.json version like this:
"name": "adviser",
"version": "0.0.0",
"license": "MIT",
I have tried commands npm cache clean --force
and tried deleting package-lock.json file.
Kindly let me know what this 0.0.0 version means and why how this problem can be tackled.

Related

No matching version found

npm ERR! code ETARGET
npm ERR! notarget No matching version found for tagcloud#^2.0.2.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
But "TagCloud" is in package.json.
Maybe the best solution is, if the npm install command doesn't work, to run npm i -S TagCloud#2.0.2 if you need to use that specific version, otherwise, just run npm i -S TagCloud.

How to fix npm install react list filter

I get an error while installing react-list-filter use npm (npm install react-list-filter), this is error messages in my console :
npm ERR! code ETARGET
npm ERR! notarget No matching version found for awesomplete#1.0.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'react-list-filter'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /home/andrew/.npm/_logs/2017-09-26T08_01_47_125Z-debug.log
I try to install awesomplete, but still, error when I install react-list-filter, please anyone help me to solve this error.
Looks like it was their bug, and it was listed on an issue a year ago
https://github.com/rauljordan/react-list-filter/issues/1
It's not likely to be fixed, you probably need to fork their repository and change their dependency on awesomplate version

How to install socket.io and mysql on Node.js

I'm too newbie to Node.js.
I'm trying to setup a basic site (in order to learn), to make a call from Javascript in front end to Node.js and return the data of a mysql query.
I followed some tutorials in internet and I made this packages.json file
{
"name": "Stock",
"version": "0.0.1",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-watch": "^0.6.1",
"grunt-execute": "^0.2.2",
"socket.io":"lastest"
}
}
Then on my Linux I run: npm install Which I understand it will install all dependencies listed on the packages.json. But I'm getting this error:
npm WARN package.json Stock#0.0.1 No description
npm WARN package.json Stock#0.0.1 No repository field.
npm WARN package.json Stock#0.0.1 No README data
npm http GET https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/socket.io
npm ERR! Error: No compatible version found: socket.io#'lastest'
npm ERR! Valid install targets:
npm ERR! ["0.3.8","0.4.0","0.4.1","0.5.1","0.5.3","0.6.0","0.6.1","0.6.3","0.6.4","0.6.5","0.6.6","0.6.7","0.6.8","0.6.9","0.6.10","0.6.11","0.6.12","0.6.14","0.6.15","0.6.16","0.6.17","0.6.18","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.7.7","0.7.8","0.7.9","0.7.10","0.7.11","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","0.9.0","0.9.1","0.9.1-1","0.9.2","0.9.3","0.9.4","0.9.5","0.9.6","0.9.7","0.9.8","0.9.9","0.9.10","0.9.11","0.9.12","0.9.13","0.9.14","0.9.15","0.9.16","1.0.0-pre","1.0.0-pre2","1.0.0-pre3","1.0.0-pre4","1.0.0-pre5","0.9.17","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.1.0","1.2.0","1.2.1","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7"]
npm ERR! at installTargetsError (/usr/share/npm/lib/cache.js:719:10)
npm ERR! at /usr/share/npm/lib/cache.js:638:10
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR! at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 3.19.0-31-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/pablo/Documents/clients/stock/node
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pablo/Documents/clients/stock/node/npm-debug.log
npm ERR! not ok code 0
I guess latest version for socket.io, is not ok? how would it work?
Part of the code I get from Here
You have a typo in the socket.io version. "socket.io":"lastest" should be changed to "socket.io":"latest".
it's supposed to be "latest" not "lastest"

Angular js wont install on my machine

I have node.js installed on my machine, I have version: v0.12.0 installed. Following instructions when I use sudo npm install I get these errors:
npm ERR! install Couldn't read dependencies
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.6.0
npm ERR! path /Users/aston.haigh/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR! package.json ENOENT, open '/Users/aston.haigh/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/aston.haigh/Projects/astonhaigh.co.uk/npm-debug.log
Ive tried clearing the node cache, updating node and havent had any luck, any ideas?
Seem to fix the issue when i uninstalled node and then reinstall using homebrew. P.s really good tutorial: https://www.youtube.com/watch?v=FqMIyTH9wSg

Having trouble including a dependancy in package.json

I have an angular project (really just the docs tutorial) and I want to include the node-mysql module in my project- doesn't have to be installed globally.
Not sure I understand how this works but I thought all I have to do was add this module to package.json as a dependency and run npm install, but I get an error:
PS> cat .\package.json
{
"version": "0.0.0",
"private": true,
"name": "angular-phonecat",
...
"dependencies": {
"node-mysql": ">=2.5.0"
},
"devDependencies": {
"karma": "^0.12.16",
...
The error:
PS> npm install
npm WARN package.json karma-chrome-launcher#0.1.7 No README data
npm ERR! notarget No compatible version found: node-mysql#'>=2.5.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","0.2.8","0.2.9","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.3.5","0.3.6","0.3.7","0.3.8","0.3.9","0.4.0","0.4.1"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\testangular\ticketsys\angular-phonecat
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ETARGET
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\testangular\ticketsys\angular-phonecat\npm-debug.log
npm ERR! not ok code 0
How can I include this dependency in my project?
Node-mysql version >2.5 is not out yet. Node-mysql is on version 0.4.1. I suspect you are looking for just the regular mysql npm module. Mysql on npm is on version 2.5.4.
Try using this instead:
"mysql": ">=2.5.0"
If you go to this page: https://github.com/felixge/node-mysql . They say in the install instructions to use npm install mysql. This might be a bit confusing since their github page is node-mysql.
Alternatively instead of adding this manually to the dependency you could go ahead and do the following:
npm install mysql --save
This will only install the most up to date one locally (Not globally, if you wanted to install it globally you could add the -g flag, but since you don't need that dont!).
As mentioned in other answers, npm is not recognizing the version you have specified. I would recommend removing that line from your package.json and instead running a single command:
npm install --save mysql
This will install the dependency locally AND add the line to your package.json(that's what the --save flag does). This automatically defaults to the most recent stable version of node-mysql.
In general, the only time you'll want to specify an actual version in your package.json is if a library patched over some features you actually wanted, in which case you could specify a version so that the necessary features are always there. So definitely start using the --save flag when you can. It's super useful. Best of luck!

Categories

Resources