R
R
Roman Romanovich2014-09-14 16:24:46
JavaScript
Roman Romanovich, 2014-09-14 16:24:46

Why do I get an error when installing plugins for grunt?

I created 2 files package.json and Gruntfile.js I wanted to install these packages, in the first I write:

{
  "name": "css3-bottom-generator",
  "version": "0.1.0",
  "devDependencies": {
    "grunt": "~0.4.5",
    "grunt-contrib-jshint": "latest",
    "grunt-contrib-concat": "latest",
    "grunt-contrib-nodeunit": "~0.4.1",
    "grunt-contrib-uglify": "latest",
    "grunt-contrib-cssmin": "latest",
    "grunt-contrib-watch": "latest",
    "grunt-remove-logging": "latest",
  }
}

I try to install using the command npm install grunt --save-dev, thinks and an error occurs. here are the logs
0 info it worked if it ends with ok
1 verbose cli [ 'c:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install' ]
2 info using [email protected]
3 info using [email protected]
4 error install Couldn't read dependencies
5 error Failed to parse json
5 error Unexpected token }
6 error File: d:\sites\loftblog\homework\dz2\package.json
7 error Failed to parse package.json data.
7 error package.json must be actual JSON, not just JavaScript.
7 error
7 error This is not a bug in npm.
7 error Tell the package author to fix their package.json file. JSON.parse
8 error System Windows_NT 6.1.7601
9 error command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
10 error cwd d:\sites\loftblog\homework\dz2
11 error node -v v0.10.29
12 error npm -v 1.4.14
13 error file d:\sites\loftblog\homework\dz2\package.json
14 error code EJSONPARSE
15 verbose exit [ 1, true ]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2014-09-14
@morflot

d:\sites\loftblog\homework\dz2
\
package.json
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question