docpad / docpad-plugin-handlebars

Adds support for the Handlebars templating engine to DocPad.
Other
7 stars 12 forks source link

Unable to install #8

Open AbdealiLoKo opened 10 years ago

AbdealiLoKo commented 10 years ago

On trying to install this using docpad install handlebars I get the following error :

info: Welcome to DocPad v6.63.8 (local installation: /media/data/shaastra/16/main/node_modules/docpad)
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: cleanurls, coffeescript, downloader, eco, less, livereload, marked, partials, related, stylus, text
info: Environment: development
info: npm install docpad-plugin-handlebars@2 --save
npm ERR! Failed to parse json
npm ERR! Unexpected token ]
npm ERR! File: /media/data/shaastra/16/main/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR! 
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! System Linux 3.13.0-35-generic
npm ERR! command "/media/data/shaastra/16/main/venv/bin/node" "/media/data/shaastra/16/main/venv/bin/npm" "install" "docpad-plugin-handlebars@2" "--save"
npm ERR! cwd /media/data/shaastra/16/main
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! file /media/data/shaastra/16/main/package.json
npm ERR! code EJSONPARSE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /media/data/shaastra/16/main/npm-debug.log
npm ERR! not ok code 0
error: Something went wrong with the action
error: An error occured: 
Error: npm ERR! Failed to parse json
npm ERR! Unexpected token ]
npm ERR! File: /media/data/shaastra/16/main/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR! 
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! System Linux 3.13.0-35-generic
npm ERR! command "/media/data/shaastra/16/main/venv/bin/node" "/media/data/shaastra/16/main/venv/bin/npm" "install" "docpad-plugin-handlebars@2" "--save"
npm ERR! cwd /media/data/shaastra/16/main
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! file /media/data/shaastra/16/main/package.json
npm ERR! code EJSONPARSE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /media/data/shaastra/16/main/npm-debug.log
npm ERR! not ok code 0

    at ChildProcess.<anonymous> (/media/data/shaastra/16/main/node_modules/docpad/node_modules/safeps/out/lib/safeps.js:165:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
info: Shutting down... cya next time!
RobLoach commented 10 years ago

/media/data/shaastra/16/main/package.json ?