JSON-Splora icon indicating copy to clipboard operation
JSON-Splora copied to clipboard

Errors when installing on Win10

Open PhiLhoSoft opened this issue 9 years ago • 3 comments

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

> [email protected] 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.

> [email protected] 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.

> [email protected] postinstall C:\Users\Philippe\AppData\Roaming\npm\node_modules\JSON-Splora\node_modules\electron
> node install.js


> [email protected] postinstall C:\Users\Philippe\AppData\Roaming\npm\node_modules\JSON-Splora\node_modules\node-jq
> npm run install-binary


> [email protected] 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
`-- [email protected]
  +-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | | +-- [email protected]
  | | | +-- [email protected]
  | | | +-- [email protected]
[...]

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

PhiLhoSoft avatar Dec 07 '16 10:12 PhiLhoSoft

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?

wellsjo avatar Dec 07 '16 14:12 wellsjo

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

PhiLhoSoft avatar Dec 07 '16 14:12 PhiLhoSoft

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)

MaanooAk avatar Dec 07 '16 14:12 MaanooAk