kimus / leximail

LexiMail is a Open Source and cross-platform e-mail desktop application.
http://leximail.org/
Other
142 stars 29 forks source link

install fail #8

Open ghost opened 10 years ago

ghost commented 10 years ago

gyp ERR! configure error gyp ERR! stack Error: spawn ENOENT gyp ERR! stack at errnoException (child_process.js:980:11) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:771:34) gyp ERR! System Windows_NT 6.2.9200 gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd d:\workspace\opensource\leximail\node_modules\iconv gyp ERR! node -v v0.10.23 gyp ERR! node-gyp -v v0.12.1 gyp ERR! not ok npm ERR! iconv@2.0.7 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iconv@2.0.7 install script. npm ERR! This is most likely a problem with the iconv package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls iconv npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" npm ERR! cwd d:\workspace\opensource\leximail npm ERR! node -v v0.10.23 npm ERR! npm -v 1.3.17 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! d:\workspace\opensource\leximail\npm-debug.log npm ERR! not ok code 0

kimus commented 10 years ago

please try to remove iconv dependency from package.json and try again.

ghost commented 10 years ago

thank you it is solved but there are other issues. I put the output of each command to below. Thank you.

d:\workspace\opensource\leximail>npm install npm WARN package.json html-to-text@0.0.8 No repository field.

d:\workspace\opensource\leximail>npm start

LexiMail@0.0.1 start d:\workspace\opensource\leximail node node_modules/.bin/nodewebkit

d:\workspace\opensource\leximail\node_modules.bin\nodewebkit:2 basedir=dirname "$0" ^ SyntaxError: Unexpected token ILLEGAL at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:902:3

npm ERR! LexiMail@0.0.1 start: node node_modules/.bin/nodewebkit npm ERR! Exit status 8 npm ERR! npm ERR! Failed at the LexiMail@0.0.1 start script. npm ERR! This is most likely a problem with the LexiMail package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node node_modules/.bin/nodewebkit npm ERR! You can get their info via: npm ERR! npm owner ls LexiMail npm ERR! There is likely additional logging output above. npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start" npm ERR! cwd d:\workspace\opensource\leximail npm ERR! node -v v0.10.23 npm ERR! npm -v 1.3.17 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! d:\workspace\opensource\leximail\npm-debug.log npm ERR! not ok code 0

d:\workspace\opensource\leximail>

kimus commented 10 years ago

I didn't test it my self but the error:

start: node node_modules/.bin/nodewebkit
basedir=dirname "$0"
^
SyntaxError: Unexpected token ILLEGAL

is a bit strange because you are in a Windows machine :-)

can you please change package.json scripts to something like:

"scripts": {
    "test": "node test/index.js",
    "start": "node_modules/.bin/nodewebkit.cmd"
},
ruslansafronov commented 9 years ago

i changed package.json, and it helps me execute nw.exe with package.nw. But i still cant run 'npm start' and it returns same error:

C:\Users\USER\...\leximail-master\node_modules\.bin\nodewebkit:2
basedir=`dirname "$0"`
        ^
SyntaxError: Unexpected token ILLEGAL
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

npm ERR! LexiMail@0.0.1 start: `node node_modules/.bin/nodewebkit`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the LexiMail@0.0.1 start script.
npm ERR! This is most likely a problem with the LexiMail package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/.bin/nodewebkit
npm ERR! You can get their info via:
npm ERR!     npm owner ls LexiMail
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program 
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! cwd C:\Users\ruslan\Development\leximail-master
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\USER\...\leximail-master\npm-debug.log
npm ERR! not ok code 0
kimus commented 9 years ago
npm ERR! LexiMail@0.0.1 start: `node node_modules/.bin/nodewebkit`

Are you sure you changed package.json to:

"scripts": {
    "test": "node test/index.js",
    "start": "node_modules/.bin/nodewebkit.cmd"
},

notice the .cmd