Tim Hartmann
Tim Hartmann

Reputation: 101

Error with grunt (grunt-contrib)

If I want to install a package via npm globally, then I get the following error repeatedly... Has anybody an idea to solve this problem?

enter image description here

Upvotes: 0

Views: 276

Answers (1)

Kyle Robinson Young
Kyle Robinson Young

Reputation: 13762

The short answer is don't install grunt-contrib. It used to be a small collection of tasks but as the grunt-contrib-* series grew, so did that library.

Nobody ever needs to install every grunt-contrib-* library. Instead, just install the tasks you need: npm install grunt-contrib-compress --save-dev

Otherwise, if you insist, install the peer dependency version it expects npm install [email protected] and try installing again: npm install grunt-contrib.

Upvotes: 1

Related Questions