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
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" } .
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.
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.
Install grunt locally (not globally).
npm install grunt --save-dev
It should help, because grunt-contrib-concat
is looking for locally installed grunt module.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With