charto / cxml

Advanced schema-aware streaming XML parser
MIT License
45 stars 33 forks source link

installation fail #12

Open stekontar opened 7 years ago

stekontar commented 7 years ago

I am trying to install it but with no luck I tried to win 10 / linux mint and in both the following message appears Failed at the node-expat@2.3.16 install script 'node-gyp rebuild' I tried to install it vi npm I also download the project and run npm install same error everywhere.

any suggestions? Regards, S.

jjrv commented 7 years ago

You probably don't have dependencies of node-gyp installed. See its installation readme. This requirement will be lifted soon.

stekontar commented 7 years ago

@jjrv thanks for your response

I have checked again the installation of node-gyp, everything seems ok.


~/node_modules $ node-gyp -v
v3.6.1

 ~/node_modules $ make -v
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
~/node_modules $ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I tried to install it in ~/node_modules directory but I had no luck I also download the project and run "npm install" but same error appears. Is there something specific that should I check?

Regards, S.

mayankpurohit17 commented 6 years ago

I am facing the same issue as mentioned by @stekontar . Please provide alternate solution.

mayankpurohit17 commented 6 years ago

This is the error in npm-debug.log:

27268 verbose stack Error: node-expat@2.3.16 install: node-gyp rebuild 27268 verbose stack Exit status 1 27268 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16) 27268 verbose stack at emitTwo (events.js:106:13) 27268 verbose stack at EventEmitter.emit (events.js:191:7) 27268 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14) 27268 verbose stack at emitTwo (events.js:106:13) 27268 verbose stack at ChildProcess.emit (events.js:191:7) 27268 verbose stack at maybeClose (internal/child_process.js:885:16) 27268 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 27269 verbose pkgid node-expat@2.3.16 27270 verbose cwd D:\demoptor 27271 error Windows_NT 10.0.10240 27272 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" 27273 error node v7.1.0 27274 error npm v3.10.9 27275 error code ELIFECYCLE 27276 error node-expat@2.3.16 install: node-gyp rebuild 27276 error Exit status 1 27277 error Failed at the node-expat@2.3.16 install script 'node-gyp rebuild'.