Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

requires a peer of grunt@>=0.4.0

Why do I get the error below? My grunt version is > v0.4.0

npm install grunt-contrib-concat --save-dev

+-- UNMET PEER DEPENDENCY grunt@>=0.4.0

Error messages:

..Projects\Hartz\Hartz>npm install grunt-contrib-concat --save-dev [email protected] C:..\Projects\Hartz\Hartz +-- UNMET PEER DEPENDENCY grunt@>=0.4.0 `-- [email protected]

npm WARN [email protected] requires a peer of grunt@>=0.4.0 but none was installed. npm WARN [email protected] requires a peer of grunt@>=0.4.0 but none was installed. npm WARN [email protected] No repository field.

grunt -V

grunt-cli v1.2.0
grunt v1.0.1

like image 401
Legends Avatar asked Sep 04 '16 08:09

Legends


People also ask

How do I install grunt locally to my project?

Installing grunt-cli locally If you prefer the idiomatic Node. js method to get started with a project ( npm install && npm test ) then install grunt-cli locally with npm install grunt-cli --save-dev . Then add a script to your package. json to run the associated grunt command: "scripts": { "test": "grunt test" } .

How do I install a specific version of grunt command line?

Installing a specific version If you need a specific version of Grunt or a Grunt plugin, run npm install grunt@VERSION --save-dev where VERSION is the version you need. This will install the specified version, adding it to your package.

How do I add grunt?

The easiest way to add Grunt and gruntplugins to an existing package. json is with the command npm install <module> --save-dev . Not only will this install <module> locally, but it will automatically be added to the devDependencies section, using a tilde version range.


1 Answers

Install grunt locally (not globally).

npm install grunt --save-dev

It should help, because grunt-contrib-concat is looking for locally installed grunt module.

like image 150
Andrei Karpushonak Avatar answered Sep 30 '22 06:09

Andrei Karpushonak