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
Related
D:\freelancing\FlowerAppProject\WEBAPP_10_5>npm install
npm WARN deprecated fsevents#1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
> node#11.15.0 preinstall D:\freelancing\FlowerAppProject\WEBAPP_10_5\node_modules\node
> node installArchSpecificPackage
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.2.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/animations#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/cdk#^8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/common#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/core#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/forms#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/material#^8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/compiler-cli#7.2.16 requires a peer of typescript#>=3.1.1 <3.3 but none is installed. You must install peer dependencies yourself.
npm WARN #ngtools/webpack#7.3.10 requires a peer of typescript#>=2.4.0 < 3.3 but none is installed. You must install peer dependencies yourself.
npm WARN #pscoped/ngx-pub-sub#3.0.0 requires a peer of #angular/common#^8.2.11 but none is installed. You must install peer dependencies yourself.
npm WARN #pscoped/ngx-pub-sub#3.0.0 requires a peer of #angular/core#^8.2.11 but none is installed. You must install peer dependencies yourself.
npm WARN angular-image-slider#0.0.9 requires a peer of #angular/animations#^8.2.13 but none is installed. You must install peer dependencies yourself.
npm WARN ng-image-slider#2.5.0 requires a peer of #angular/common#^8.2.2 but none is installed. You must install peer dependencies yourself.
npm WARN ng-image-slider#2.5.0 requires a peer of #angular/core#^8.2.2 but none is installed. You must install peer dependencies yourself.
npm ERR! file bash
npm ERR! path bash
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn bash
npm ERR! node#11.15.0 preinstall: `node installArchSpecificPackage`
npm ERR! spawn bash ENOENT
npm ERR!
npm ERR! Failed at the node#11.15.0 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hunter\AppData\Roaming\npm-cache\_logs\2020-05-15T13_23_06_391Z-debug.log
First - have you run npm install -g angular already?
If so -
Have you tried to manually install the missing dependencies?
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/animations#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/cdk#^8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/common#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/core#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/forms#^8.2.14 but none is installed. You must install peer dependencies yourself.
npm WARN #angular-material-extensions/password-strength#4.1.2 requires a peer of #angular/material#^8.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN #angular/compiler-cli#7.2.16 requires a peer of typescript#>=3.1.1 <3.3 but none is installed. You must install peer dependencies yourself.
npm WARN #ngtools/webpack#7.3.10 requires a peer of typescript#>=2.4.0 < 3.3 but none is installed. You must install peer dependencies yourself.
npm WARN #pscoped/ngx-pub-sub#3.0.0 requires a peer of #angular/common#^8.2.11 but none is installed. You must install peer dependencies yourself.
npm WARN #pscoped/ngx-pub-sub#3.0.0 requires a peer of #angular/core#^8.2.11 but none is installed. You must install peer dependencies yourself.
npm WARN angular-image-slider#0.0.9 requires a peer of #angular/animations#^8.2.13 but none is installed. You must install peer dependencies yourself.
npm WARN ng-image-slider#2.5.0 requires a peer of #angular/common#^8.2.2 but none is installed. You must install peer dependencies yourself.
npm WARN ng-image-slider#2.5.0 requires a peer of #angular/core#^8.2.2 but none is installed. You must install peer dependencies yourself.
The package.json file should take care of this in theory, but obviously it is not.
You should go down the list and manually npm install #angular/animations#^8.2.14 etc until all the entries are installed successfully and try again.
For some reason on your machine it's not automatically picking up the dependencies - I assume that you installed angular already or this whole project is coming from some tutorial you're following?
These lines mean that it tries to run bash command but can not find it:
npm ERR! file bash
npm ERR! path bash
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn bash
npm ERR! node#11.15.0 preinstall: `node installArchSpecificPackage`
npm ERR! spawn bash ENOENT
I assume that you are running it under the Windows OS, where bash is absent (if you are not running it under WSL e.g.).
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.
On npm install, I am getting the following "peer dependency not installed" warnings:
npm WARN react-select#0.9.1 requires a peer of react#^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-select#0.9.1 requires a peer of react-dom#^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN draft-js-markdown-shortcuts-plugin#0.3.0 requires a peer of react#^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN draft-js-markdown-shortcuts-plugin#0.3.0 requires a peer of react-dom#^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN draft-js-plugins-editor#2.0.8 requires a peer of react#^15.5.0 || ^16.0.0-rc but none is installed. You must install peer dependencies yourself.
npm WARN draft-js-plugins-editor#2.0.8 requires a peer of react-dom#^15.5.0 || ^16.0.0-rc but none is installed. You must install peer dependencies yourself.
npm WARN enzyme-adapter-react-16#1.7.0 requires a peer of react#^16.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN enzyme-adapter-react-16#1.7.0 requires a peer of react-dom#^16.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN filestack-react#1.3.9 requires a peer of filestack-js#^0.11.2 but none is installed. You must install peer dependencies yourself.
npm WARN filestack-react#1.3.9 requires a peer of react#^15.5.4 but none is installed. You must install peer dependencies yourself.
npm WARN react-avatar#2.5.1 requires a peer of react#^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-helmet#5.2.0 requires a peer of react#>=15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-hot-loader#4.3.12 requires a peer of react#^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-image-filter#0.1.2 requires a peer of react#>=15.6.2 but none is installed. You must install peer dependencies yourself.
npm WARN react-image-filter#0.1.2 requires a peer of react-dom#>=15.6.2 but none is installed. You must install peer dependencies yourself.
npm WARN react-json-tree#0.11.0 requires a peer of react#^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-json-tree#0.11.0 requires a peer of react-dom#^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-onclickoutside#6.7.1 requires a peer of react#^15.5.x || ^16.x but none is installed. You must install peer dependencies yourself.
npm WARN react-onclickoutside#6.7.1 requires a peer of react-dom#^15.5.x || ^16.x but none is installed. You must install peer dependencies yourself.
npm WARN hoist-non-react-statics#3.1.0 requires a peer of react#>=14.x but none is installed. You must install peer dependencies yourself.
npm WARN react-router#4.3.1 requires a peer of react#>=15 but none is installed. You must install peer dependencies yourself.
npm WARN react-router-dom#4.3.1 requires a peer of react#>=15 but none is installed. You must install peer dependencies yourself.
npm WARN react-svg#4.1.8 requires a peer of react#^15.5.4 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-svg#4.1.8 requires a peer of react-dom#^15.5.4 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-test-renderer#16.6.3 requires a peer of react#^16.6.3 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group#2.5.0 requires a peer of react#>=15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-transition-group#2.5.0 requires a peer of react-dom#>=15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN redux-devtools-log-monitor#1.4.0 requires a peer of react#^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN redux-form#4.2.2 requires a peer of react-redux#^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN slick-carousel#1.8.1 requires a peer of jquery#>=1.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN jade-react-loader#1.0.2 requires a peer of react#0 but none is installed. You must install peer dependencies yourself.
npm WARN react-jade#2.5.0 requires a peer of react#>=0.12.0 <0.15.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-select#0.9.1 requires a peer of react#^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-select#0.9.1 requires a peer of react-dom#^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN formsy-react#0.19.5 requires a peer of react#^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-css-super-themr#2.2.0 requires a peer of react#^0.14.0 || ^15.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN react-input-autosize#0.6.13 requires a peer of react#^0.14 || ^15.0.0-rc || ^15.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-select#0.9.1 requires a peer of react#^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-select#0.9.1 requires a peer of react-dom#^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-switch-button#1.1.2 requires a peer of react#^0.14.7 but none is installed. You must install peer dependencies yourself.
npm WARN redux-form#4.2.2 requires a peer of react-redux#^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN jade-react-loader#1.0.2 requires a peer of react#0 but none is installed. You must install peer dependencies yourself.
npm WARN react-jade#2.5.0 requires a peer of react#>=0.12.0 <0.15.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-select#0.9.1 requires a peer of react#^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-select#0.9.1 requires a peer of react-dom#^0.14.1 but none is installed. You must install peer dependencies yourself.
npm WARN react2angular#4.0.4 requires a peer of #types/prop-types#>=15 but none is installed. You must install peer dependencies yourself.
npm WARN react2angular#4.0.4 requires a peer of #types/react#>=16 but none is installed. You must install peer dependencies yourself.
npm WARN react2angular#4.0.4 requires a peer of #types/react-dom#>=16 but none is installed. You must install peer dependencies yourself.
I tried to remove these warnings by running npm install #types/react-dom#>=16, but the warnings are not getting removed.
How do I get rid of these warnings?
You cannot install the peers automatically with npm 3 upwards: see How to install npm peer dependencies automatically?
The project npm-install-peers (https://github.com/spatie/npm-install-peers#readme) will detect peers and install them.
You should:
$ npm install --save-dev ...
Note: "..." is your package to install
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.