K
K
Konstantin Ivanov2015-02-11 11:24:16
Node.js
Konstantin Ivanov, 2015-02-11 11:24:16

Trouble installing grunt via npm?

Good afternoon.
I'm trying to install grunt via npm. Gives errors.
I have a grunt folder, it has a package.json

{
    "name": "grunt",
    "version": "1.0.0",
    "description": "test grunt",
    "main": "Gruntfiles.js",
    "dependencies" : {
      "grunt"                : "latest",
      "grunt-contrib-jshint" : "latest",
      "grunt-contrib-concat" : "latest",
      "grunt-contrib-uglify" : "latest",
      "grunt-contrib-cssmin" : "latest",
      "grunt-contrib-watch"  : "latest",
    },
}

From the command line I enter npm install and get
174334aa008643519d03fb613fd6b7e4.jpg
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Pustoutov, 2017-03-20
@alex3319

Run the command with sudo and you'll be fine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question