Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

stuck while installing packages. npm ERR! notarget No matching version found for [email protected]

Tags:

node.js

npm WARN read-shrinkwrap This version of npm is compatible with 
lockfileVersion@1, but npm-shrinkwrap.json was generated for 
lockfileVersion@0. I'll try to do my best with it!
npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected] 
unreleasable
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 'shoe'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/node/.npm/_logs/2018-08-27T12_19_24_084Z-debug.log

i got this Error While installing packages it dont let me install packages please Help.

Thanks in Advance

like image 658
KARNAV PARGI Avatar asked Aug 27 '18 12:08

KARNAV PARGI


2 Answers

try out below steps to resolve that error

step 1 - remove your node_modules folder

rm -rf node_modules

step 2 -

npm cache clean

step 3 -

sudo apt-get install build-essential

step 4 - remove your package-lock.json and install node modules again.

npm install

(if there is EACCESS error comes then try with sudo command.)

like image 118
Arif Rathod Avatar answered Oct 12 '22 14:10

Arif Rathod


I solved the issue by

  1. Delete node-modules folder
  2. Deleting the package-lock.json file
  3. Run npm install
  4. Now Run npm start
like image 45
Prashant Yalatwar Avatar answered Oct 12 '22 15:10

Prashant Yalatwar