tojocky / node-printer

Native node.js printer
1.53k stars 441 forks source link

node-webkit install error #52

Closed jmorrisIII closed 9 years ago

jmorrisIII commented 9 years ago

Trying to install from node-webkit but failing. Unless I overlooked it I couldn’t find the same problem in other issues. Any ideas?

    npm ERR! Failed to parse json
    npm ERR! Unexpected token /
    npm ERR! File: E:\WebstormProjects\innovation-sales-order-entry\www\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 Windows_NT 6.1.7601
    npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "printer"
    npm ERR! cwd E:\WebstormProjects\innovation-sales-order-entry\www
    npm ERR! node -v v0.10.32
    npm ERR! npm -v 1.4.28
    npm ERR! file E:\WebstormProjects\innovation-sales-order-entry\www\package.json
    npm ERR! code EJSONPARSE
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR!     E:\WebstormProjects\innovation-sales-order-entry\www\npm-debug.log
    npm ERR! not ok code 0
tojocky commented 9 years ago

did you change package.json? what was the commend to install the module?

jmorrisIII commented 9 years ago

npm install printer. I also tried "npm install git+https://github.com/tojocky/node-printer.git"

bwin commented 9 years ago

You have a syntax error in your package.json. See the error msg: File: E:\WebstormProjects\innovation-sales-order-entry\www\package.json. Npm always reads your package.json before installing modules.

jmorrisIII commented 9 years ago

Thanks @bwin it installed.

bwin commented 9 years ago

:+1:

tojocky commented 9 years ago

Thanks @bwin

bwin commented 9 years ago

Happy to help! :smile: Thnx for node-printer.