Создал 2 файла package.json и Gruntfile.js хотел установить данные пакеты, в первом пишу:
{
"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",
}
}
c помощью команды
npm install grunt --save-dev
пытаюсь установить, думает и вылетает ошибка. вот логи
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 npm@1.4.14
3 info using node@v0.10.29
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 ]