node version: 8.9.3
npm version: 5.5.1
When I try to execute npm install googleapis I'm getting this result:
npm WARN eslint-config-standard#6.2.1 requires a peer of
eslint#>=3.8.1 but none is installed. You must install peer
dependencies yourself. npm WARN eslint-config-standard#6.2.1 requires
a peer of eslint-plugin-promise#>=3.3.0 but none is installed. You
must install peer dependencies yourself. npm WARN
eslint-config-standard#6.2.1 requires a peer of
eslint-plugin-standard#>=2.0.0 but none is installed. You must install
peer dependencies yourself.
npm ERR! Cannot read property '0' of undefined
What can I do? google apis package is not adding to the node_modules folder
I'm on windows 10
Related
I cloned Swashbuckle.AspNetCore and am trying to build it
However the node_modules folder is missing
I ran npm i redoc and got the following output
npm WARN saveError ENOENT: no such file or directory, open 'C:\Windows\System32\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Windows\System32\package.json'
npm WARN redoc#2.0.0-rc.40 requires a peer of mobx#^4.2.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN redoc#2.0.0-rc.40 requires a peer of react#^16.8.4 but none is installed. You must install peer dependencies yourself.
npm WARN redoc#2.0.0-rc.40 requires a peer of react-dom#^16.8.4 but none is installed. You must install peer dependencies yourself.
npm WARN redoc#2.0.0-rc.40 requires a peer of styled-components#^4.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN mobx-react#6.3.0 requires a peer of mobx#^5.15.4 || ^4.15.4 but none is installed. You must install peer dependencies yourself.
npm WARN mobx-react#6.3.0 requires a peer of react#^16.8.0 || 16.9.0-alpha.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-tabs#3.1.1 requires a peer of react#^16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN #redocly/react-dropdown-aria#2.0.11 requires a peer of react#^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN #redocly/react-dropdown-aria#2.0.11 requires a peer of react-dom#^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN #redocly/react-dropdown-aria#2.0.11 requires a peer of styled-components#^5.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN mobx-react-lite#2.2.1 requires a peer of mobx#^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN mobx-react-lite#2.2.1 requires a peer of react#^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN System32 No description
npm WARN System32 No repository field.
npm WARN System32 No README data
npm WARN System32 No license field.
How should I proceed?
I needed to be in the Swashbuckle.AspNetCore.ReDoc folder before running the command
npm i redoc
We are already using the latest version of angular ("#angular/core": "~8.2.5").
But when install, npm gives some warning about the module versions.
Please see the above console result :
npm WARN angular-pell#0.1.0 requires peer of #angular/common#^5.2.5 but none is installed. You must install peer dependencies yourself.
npm WARN angular-pell#0.1.0 reuqires peer of #angular/core#^5.2.5 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/core#2.4.10 requires peer of rxjs#^5.0.1 but none is installed. You must install peer dependencies yourself.
What is about the npm warn?
Why npm provides some warns?
Try runing npm audit:
npm audit fix
I am working on angular 7 project. I tried to install
npm install --save #types/underscore
and i get following errors:
npm WARN #agm/core#1.0.0-beta.5 requires a peer of
#angular/common#^5.0.0 || ^6.0.0 but none is installed. You must
install peer dependencies yourself. npm WARN #agm/core#1.0.0-beta.5
requires a peer of #angular/core#^5.0.0 || ^6.0.0 but none is
installed. You must install peer dependencies yourself. npm WARN
#angular/cdk#6.4.7 requires a peer of #angular/core#>=6.0.0-beta.0
<7.0.0 but none is installed. You must install peer dependencies
yourself. npm WARN #angular/cdk#6.4.7 requires a peer of
#angular/common#>=6.0.0-beta.0 <7.0.0 but none is installed. You must
install peer dependencies yourself. npm WARN #angular/material#6.4.7
requires a peer of #angular/core#>=6.0.0-beta.0 <7.0.0 but none is
installed. You must install peer dependencies yourself. npm WARN
#angular/material#6.4.7 requires a peer of
#angular/common#>=6.0.0-beta.0 <7.0.0 but none is installed. You must
install peer dependencies yourself. npm WARN
#angular/platform-server#6.1.10 requires a peer of
#angular/animations#6.1.10 but none is installed. You must install
peer dependencies yourself. npm WARN #angular/platform-server#6.1.10
requires a peer of #angular/common#6.1.10 but none is installed. You
must install peer dependencies yourself. npm WARN
#angular/platform-server#6.1.10 requires a peer of
#angular/compiler#6.1.10 but none is installed. You must install peer
dependencies yourself. npm WARN #angular/platform-server#6.1.10
requires a peer of #angular/core#6.1.10 but none is installed. You
must install peer dependencies yourself. npm WARN
#angular/platform-server#6.1.10 requires a peer of
#angular/platform-browser#6.1.10 but none is installed. You must
install peer dependencies yourself. npm WARN
#angular/platform-server#6.1.10 requires a peer of
#angular/platform-browser-dynamic#6.1.10 but none is installed. You
must install peer dependencies yourself. npm WARN codelyzer#4.3.0
requires a peer of #angular/compiler#>=2.3.1 <7.0.0 || >6.0.0-beta
<7.0.0 but none is installed. You must install peer dependencies
yourself. npm WARN codelyzer#4.3.0 requires a peer of
#angular/core#>=2.3.1 <7.0.0 || >6.0.0-beta <7.0.0 but none is
installed. You must install peer dependencies yourself. npm WARN
#angular/animations#6.1.10 requires a peer of #angular/core#6.1.10 but
none is installed. You must install peer dependencies yourself. npm
WARN #angular/router#6.1.10 requires a peer of #angular/core#6.1.10
but none is installed. You must install peer dependencies yourself.
npm WARN #angular/router#6.1.10 requires a peer of
#angular/common#6.1.10 but none is installed. You must install peer
dependencies yourself. npm WARN #angular/router#6.1.10 requires a peer
of #angular/platform-browser#6.1.10 but none is installed. You must
install peer dependencies yourself. npm WARN ngx-toastr#9.1.0 requires
a peer of #angular/core#^6.0.0 but none is installed. You must install
peer dependencies yourself. npm WARN ngx-toastr#9.1.0 requires a peer
of #angular/common#^6.0.0 but none is installed. You must install peer
dependencies yourself. npm WARN ngx-toastr#9.1.0 requires a peer of
#angular/platform-browser#^6.0.0 but none is installed. You must
install peer dependencies yourself.
#types/underscore#1.8.9 added 1 package from 5 contributors and audited 40215 packages in 20.546s found 0 vulnerabilities
after it i get this error:
./src/app/services/pager.service.ts
Module not found: Error: Can't resolve 'underscore' in 'e:\xampp\htdocs\testapp\src\app\services
Please help me.
you need to install underscore into dependencies and #types/underscore into devDependencies.
npm i underscore --save
npm i #types/underscore --save-dev
then you can use it.
What does 'npm WARN express-validation#1.0.2 requires a peer of joi#* but none is installed. You must install peer dependencies yourself.' mean? And how can I solve it?
when i run:
npm install express-validation --save
I get:
npm WARN express-validation#1.0.2 requires a peer of joi#* but none is installed. You must install peer dependencies yourself.
so then i run:
npm install -g npm-install-peers
then:
npm-install-peers
then I get:
This package doesn't seem to have any peerDependencies
so then i run:
npm install express-validation --save
I get:
npm WARN express-validation#1.0.2 requires a peer of joi#* but none is installed. You must install peer dependencies yourself.
You can install it yourself with npm install joi --save
The package name is wrong. If you are trying to validate data in your app you should consider start looking for express-validator.
Express-validation requires a peer of joy and i dont know what both means.
I have a React + WebPack project, when I install the npm dependencies I get some warnings about unsatisfied peerDependencies:
$ npm install
npm WARN carte-blanche#0.2.1 requires a peer of webpack#>=1 <3 but none was installed.
npm WARN carte-blanche-react-plugin#0.2.1 requires a peer of webpack#>=1 <3 but none was installed.
npm WARN carte-blanche-react-plugin#0.1.3 requires a peer of carte-blanche#^0.1.0 but none was installed.
npm WARN carte-blanche-react-plugin#0.1.3 requires a peer of webpack#>=1 <3 but none was installed.
npm WARN extract-text-webpack-plugin#1.0.1 requires a peer of webpack#^1.9.11 but none was installed.
npm WARN karma-webpack#1.7.0 requires a peer of webpack#^1.4.0 but none was installed.
npm WARN react-overlays#0.5.4 requires a peer of react-dom#^0.14.0 but none was installed.
npm WARN react-simpletabs#0.6.1 requires a peer of react#0.12.x - 1.x but none was installed.
Everything works as expected, but I get these warnings and I can't find a way to resolve them.
I have tried manually installing (for instance) webpack manually, but nothing changes at all.