wellsjo / JSON-Splora

GUI app for editing, visualizing, and manipulating JSON data
MIT License
1.86k stars 60 forks source link

Errors when installing on Win10 #56

Open PhiLhoSoft opened 7 years ago

PhiLhoSoft commented 7 years ago

FYI, I had errors displayed while installing the software on Windows 10 Pro (64-bit, French). Strangely, they don't prevent jsplora to launch the program that seems to work fine (from a quick test). That's why it is "for your information"... Feel free to close if needed.

> npm -v
3.9.5

> node -v
v4.4.5

> npm i -g JSON-Splora
C:\Users\Philippe\AppData\Roaming\npm\jsplora -> C:\Users\Philippe\AppData\Roaming\npm\node_modules\JSON-Splora\bin\jsplora

> git-validate@2.2.2 install C:\Users\Philippe\AppData\Roaming\npm\node_modules\JSON-Splora\node_modules\git-validate
> node bin/install

WARNING: Unable to find a .git directory for this project, installation aborted.

> JSON-Splora@0.0.6 install C:\Users\Philippe\AppData\Roaming\npm\node_modules\JSON-Splora
> node bin/install

WARNING: Unable to find a package.json for this project, installation aborted.

> electron@1.4.10 postinstall C:\Users\Philippe\AppData\Roaming\npm\node_modules\JSON-Splora\node_modules\electron
> node install.js

> node-jq@0.4.2 postinstall C:\Users\Philippe\AppData\Roaming\npm\node_modules\JSON-Splora\node_modules\node-jq
> npm run install-binary

> node-jq@0.4.2 install-binary C:\Users\Philippe\AppData\Roaming\npm\node_modules\JSON-Splora\node_modules\node-jq
> node scripts/install-binary.js

Err: Error: ./configure --disable-maintainer-mode --bindir=C:\Users\Philippe\AppData\Roaming\npm\node_modules\JSON-Splora\node_modules\node-jq\bin --libdir=C:\Users\Philippe\AppData\Local\Temp\64fbb9c0-82e7-4fde-9377-eb8ca68d1277 && make && make install
Command failed: C:\WINDOWS\system32\cmd.exe /s /c "./configure --disable-maintainer-mode --bindir=C:\Users\Philippe\AppData\Roaming\npm\node_modules\JSON-Splora\node_modules\node-jq\bin --libdir=C:\Users\Philippe\AppData\Local\Temp\64fbb9c0-82e7-4fde-9377-eb8ca68d1277"
'.' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

jq installed successfully on C:\Users\Philippe\AppData\Roaming\npm\node_modules\JSON-Splora\node_modules\node-jq\bin
C:\Users\Philippe\AppData\Roaming\npm
`-- JSON-Splora@0.0.6
  +-- codemirror@5.21.0
  +-- electron@1.4.10
  | +-- electron-download@3.0.1
  | | +-- fs-extra@0.30.0
  | | | +-- graceful-fs@4.1.11
  | | | +-- jsonfile@2.4.0
[...]

I cut down the output of NPM's modules. The French message says it doesn't recognize '.' as a command.

wellsjo commented 7 years ago

Hmmm...it seems like this may be a bug in node-jq's installation process on Windows, yet it seems to think it installed successfully. Does using jq filters in the app work?

PhiLhoSoft commented 7 years ago

I just tested, they seem to work, if that's stuff like [5].foo.url to access [ ..., { "foo": { "url": "http", ... }, ... }, ... ] for example.

MaanooAk commented 7 years ago

node-jq tries to run ./configure ... which can't run on windows, beacause the ./ is not valid syntax. The command that fails has the --disable-maintainer-mode param (... so is not so important ???) But somehow I didn't get this error (Win10 here too)