Problems installing grunt: Multiple dependency issues - angularjs

I keep getting all of these warnings and dependency issues when trying to install grunt locally using npm install grunt --save-dev.
PS C:\atomworkspace\angularProject\conFusion> npm install grunt --save-dev
conFusion# C:\atomworkspace\angularProject\conFusion
+-- UNMET PEER DEPENDENCY grunt#1.0.1
+-- UNMET PEER DEPENDENCY grunt-contrib-clean#1.0.0 extraneous
+-- UNMET PEER DEPENDENCY grunt-contrib-coffee#~0.10.0
+-- UNMET PEER DEPENDENCY grunt-contrib-compass#~0.7.0
+-- UNMET PEER DEPENDENCY grunt-contrib-compress#~0.8.0
+-- UNMET PEER DEPENDENCY grunt-contrib-concat#~0.4.0
+-- UNMET PEER DEPENDENCY grunt-contrib-connect#~0.7.0
+-- UNMET PEER DEPENDENCY grunt-contrib-copy#~0.5.0
+-- UNMET PEER DEPENDENCY grunt-contrib-csslint#~0.2.0
+-- UNMET PEER DEPENDENCY grunt-contrib-cssmin#~0.9.0
+-- UNMET PEER DEPENDENCY grunt-contrib-handlebars#~0.8.0
+-- UNMET PEER DEPENDENCY grunt-contrib-htmlmin#~0.2.0
+-- UNMET PEER DEPENDENCY grunt-contrib-imagemin#~0.7.0
+-- UNMET PEER DEPENDENCY grunt-contrib-jade#~0.11.0
+-- UNMET PEER DEPENDENCY grunt-contrib-jasmine#~0.6.0
+-- UNMET PEER DEPENDENCY grunt-contrib-jshint#1.1.0 extraneous
+-- UNMET PEER DEPENDENCY grunt-contrib-jst#~0.6.0
+-- UNMET PEER DEPENDENCY grunt-contrib-less#~0.11.0
+-- UNMET PEER DEPENDENCY grunt-contrib-nodeunit#~0.3.0
+-- UNMET PEER DEPENDENCY grunt-contrib-qunit#~0.4.0
+-- UNMET PEER DEPENDENCY grunt-contrib-requirejs#~0.4.1
+-- UNMET PEER DEPENDENCY grunt-contrib-sass#~0.7.0
+-- UNMET PEER DEPENDENCY grunt-contrib-stylus#~0.15.1
+-- UNMET PEER DEPENDENCY grunt-contrib-symlink#~0.3.0
+-- UNMET PEER DEPENDENCY grunt-contrib-uglify#~0.4.0
+-- UNMET PEER DEPENDENCY grunt-contrib-watch#~0.6.0
`-- UNMET PEER DEPENDENCY grunt-contrib-yuidoc#~0.5.0
npm WARN grunt-contrib#0.11.0 requires a peer of grunt#~0.4.4 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-clean#~0.5.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-coffee#~0.10.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-compass#~0.7.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-compress#~0.8.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-concat#~0.4.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-connect#~0.7.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-copy#~0.5.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-csslint#~0.2.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-cssmin#~0.9.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-handlebars#~0.8.0 but none was installe
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-htmlmin#~0.2.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-imagemin#~0.7.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-jade#~0.11.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-jasmine#~0.6.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-jshint#~0.10.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-jst#~0.6.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-less#~0.11.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-nodeunit#~0.3.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-qunit#~0.4.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-requirejs#~0.4.1 but none was installed
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-sass#~0.7.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-stylus#~0.15.1 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-symlink#~0.3.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-uglify#~0.4.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-watch#~0.6.0 but none was installed.
npm WARN grunt-contrib#0.11.0 requires a peer of grunt-contrib-yuidoc#~0.5.0 but none was installed.
PS C:\atomworkspace\angularProject\conFusion>
Here's my package.json:
{
"name": "conFusion",
"private": true,
"devDependencies": { "grunt": "^1.0.1" },
"engines": { "node": ">=0.10.0" }
}

Try installing grunt globally npm install -g grunt-cli

Downgrade npm version to 6.x. It should fix the issue. npm v7 throws these kind of errors.

Related

Blank screen after change tag <a href....> on <NavLink to ...>

I have problem - blank screen, after change teg <a href= /..> on <<NavLink to="/..">.
After input, command npm list react-router react-router-dom, in terminal, i recieived this message:
+-- react-admin#3.19.11
| +-- UNMET PEER DEPENDENCY react-router#5.2.1
| `-- UNMET PEER DEPENDENCY react-router-dom#5.3.0
| `-- UNMET PEER DEPENDENCY react-router#5.2.1 deduped
`-- react-router-dom#6.3.0
`-- react-router#6.3.0
npm ERR! peer dep missing: react-router#^4.3.1 || ^5.0.0, required by connected-react-router#6.9.2
npm ERR! peer dep missing: react-router#^5.1.0, required by ra-core#3.19.11
npm ERR! peer dep missing: react-router#^5.1.0, required by ra-ui-materialui#3.19.11
npm ERR! peer dep missing: react-router-dom#^5.1.0, required by ra-core#3.19.11
npm ERR! peer dep missing: react-router-dom#^5.1.0, required by ra-ui-materialui#3.19.11
What this mean?
Sorry. Now, i study. And i dont know, its ok or critical, or what is problem.
Thanks

Webpack install throws an error UNMET PEER DEPENDENCY webpack#4.6.0 invalid

I am trying to compile an old project. npm install -D webpack earlier complained of webpack-cli install issue. Now if I try with the latest one npm i -D webpack#4.6.0, it is giving following error.
└── UNMET PEER DEPENDENCY webpack#4.6.0 invalid
npm WARN babel-loader#6.4.1 requires a peer of webpack#1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none was installed.
npm WARN webpack-dev-middleware#1.12.2 requires a peer of webpack#^1.0.0 || ^2.0.0 || ^3.0.0 but none was installed.
npm WARN webpack-dev-server#1.16.5 requires a peer of webpack#>=1.3.0 <3 but none was installed.
npm WARN react-tutorials#0.0.0 No repository field.
npm ERR! code 1

Error when trying npm install tslint and rxjs

I've tried npm install tslint and npm install rxjs, both run after npm cache clean and with #latest in the end. Every time I keep getting "UNMET PEER DEPENDECY rxjs#5.0.3" and "UNMET PEER DEPENDENCY tslint#4.3.1".
The entire failure stack is
[jannik#jannik-dimsen app (AngularApp *)]$ npm install
first-app#0.0.0 /home/jannik/angular2apps/first-app
├── UNMET PEER DEPENDENCY rxjs#5.0.3
└── UNMET PEER DEPENDENCY tslint#4.3.1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.0.17: wanted {"os":"darwin","
arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN #angular/core#2.2.3 requires a peer of rxjs#5.0.0-beta.12 but none was installed.
npm WARN #angular/http#2.2.3 requires a peer of rxjs#5.0.0-beta.12 but none was installed.
npm WARN #angular/router#3.2.3 requires a peer of rxjs#5.0.0-beta.12 but none was installed.
npm WARN codelyzer#2.0.0-beta.3 requires a peer of tslint#~4.0.0 but none was installed.
npm WARN tslint-loader#2.1.5 requires a peer of tslint#^3.0.0 but none was installed.
npm ERR! code 1
Some sites suggested running npm cache clean but that didn't fix my problem, and I can't figure out why I can't install those npm modules. I've added them to the package.json file as well and tried a npm install giving the same error

generator-backbone not install properly

error :
+-- UNMET PEER DEPENDENCY generator-backbone-mocha#>=0.0.2
`-- UNMET PEER DEPENDENCY generator-mocha#>=0.1.3
npm WARN generator-backbone#0.4.0 requires a peer of generator-mocha#>=0.1.3 but none was installed.
npm WARN generator-backbone#0.4.0 requires a peer of generator-backbone-mocha#>=0.0.2 but none was installed.
UNMET PEER DEPENDENCY error means that your dependency (in this case generator-backbone) requires that you explicitly install also something else (in this case, generator-mocha and generator-backbone-mocha). You should just install those dependencies (top level):
npm install generator-backbone#0.4.0 --save
npm install generator-backbone-mocha --save

Npm install angular, unmet dependencies

I am really confused as to why this is happening, can anyone shed some light?
npm -v gives me version 2.13.5
This happens when i run
npm install angular
npm WARN unmet dependency /Users/arthurrafal/Desktop/bookSwapon/node_modules/laravel-elixir/node_modules/browserify requires glob#'^4.0.5' but will load
npm WARN unmet dependency /Users/arthurrafal/Desktop/bookSwapon/node_modules/laravel-elixir/node_modules/glob,
npm WARN unmet dependency which is version 5.0.14
npm WARN unmet dependency /Users/arthurrafal/Desktop/bookSwapon/node_modules/laravel-elixir/node_modules/gulp-load-plugins requires findup-sync#'^0.2.1' but will load
npm WARN unmet dependency /Users/arthurrafal/Desktop/bookSwapon/node_modules/findup-sync,
npm WARN unmet dependency which is version 0.1.2
npm WARN unmet dependency /Users/arthurrafal/Desktop/bookSwapon/node_modules/laravel-elixir/node_modules/gulp-phpspec requires gulp-util#'~2.2.14' but will load
npm WARN unmet dependency /Users/arthurrafal/Desktop/bookSwapon/node_modules/laravel-elixir/node_modules/gulp-util,
npm WARN unmet dependency which is version 3.0.6
npm WARN unmet dependency /Users/arthurrafal/Desktop/bookSwapon/node_modules/laravel-elixir/node_modules/gulp-phpunit requires gulp-util#'~2.2.14' but will load
npm WARN unmet dependency /Users/arthurrafal/Desktop/bookSwapon/node_modules/laravel-elixir/node_modules/gulp-util,
npm WARN unmet dependency which is version 3.0.6
npm WARN unmet dependency /Users/arthurrafal/Desktop/bookSwapon/node_modules/laravel-elixir/node_modules/gulp-rev-replace requires gulp-util#'~2.2.14' but will load
npm WARN unmet dependency /Users/arthurrafal/Desktop/bookSwapon/node_modules/laravel-elixir/node_modules/gulp-util,
npm WARN unmet dependency which is version 3.0.6
npm WARN unmet dependency /Users/arthurrafal/Desktop/bookSwapon/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream requires through2#'^0.6.1' but will load
npm WARN unmet dependency /Users/arthurrafal/Desktop/bookSwapon/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2,
npm WARN unmet dependency which is version 2.0.0
angular#1.4.4 ../node_modules/angular
package.json
{
"private": true,
"devDependencies": {
"gulp": "^3.8.8"
},
"dependencies": {
"laravel-elixir": "^3.0.0",
"bootstrap-sass": "^3.0.0"
}
}

Resources