mr_incredible
mr_incredible

Reputation: 1135

installing node dependencies manually

As I've learned from SO topics dependencies for node aren't installed automatically on the fly since npm version 3. I'm running version 3.5.2 and I get these warnings when running npm install --no-optional:

npm WARN [email protected] requires a peer of @typescript-eslint/[email protected] but none was installed.
npm WARN [email protected] requires a peer of @typescript-eslint/[email protected] but none was installed.
npm WARN [email protected] requires a peer of [email protected] but none was installed.
npm WARN [email protected] requires a peer of typescript@* but none was installed.
npm WARN [email protected] requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev

npm ERR! Missing: react-router-dom@^5.1.2
npm ERR! Invalid: lock file's @typescript-eslint/[email protected] does not satisfy @typescript-eslint/[email protected]
npm ERR!

How do I install these manually ?

I tried:

npm install @typescript-eslint/eslint-plugin@2.*
npm install eslint@6.*
npm install typescript@*

but that did no good. Still throws those warnings.

I got little bit further:

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @typescript-eslint/eslint-plugin@^5.16.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 'client'
npm ERR! notarget 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/mark/.npm/_logs/2019-10-04T20_26_24_111Z-debug.log

Upvotes: 1

Views: 819

Answers (1)

Allen Haley
Allen Haley

Reputation: 657

Please use the following for each peer dependency to install that and remove the error.

$ npm install --save-dev @typescript-eslint

For another error,

No matching version found for @typescript-eslint/eslint-plugin@^5.16.0.

Please run npm view @typescript-eslint/eslint-plugin. Then, you can see that highest version of @typescript-eslint/eslint-plugin is 2.3.2 now. This @typescript-eslint/eslint-plugin@^5.16.0 version not exists.

Upvotes: 1

Related Questions