wellsjo / JSON-Splora

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

Problem installing on OS X 10.11.6, node 7.6.0; "command not found: jsplora" #79

Open ianwaldrop opened 7 years ago

ianwaldrop commented 7 years ago

I'm fairly sure that I'm doing it right, but the odds are against me here.

» npm i -g json-splora

> git-validate@2.2.2 install /usr/local/Cellar/node/7.6.0/lib/node_modules/json-splora/node_modules/git-validate
> node bin/install

WARNING: Unable to find a .git directory for this project, installation aborted.
npm WARN engine got@5.7.1: wanted: {"node":">=0.10.0 <7"} (current: {"node":"7.6.0","npm":"2.15.0"})

> node-jq@0.5.0 postinstall /usr/local/Cellar/node/7.6.0/lib/node_modules/json-splora/node_modules/node-jq
> npm run install-binary

> node-jq@0.5.0 install-binary /usr/local/Cellar/node/7.6.0/lib/node_modules/json-splora/node_modules/node-jq
> node scripts/install-binary.js

jq installed successfully on /usr/local/Cellar/node/7.6.0/lib/node_modules/json-splora/node_modules/node-jq/bin

> electron@1.4.15 postinstall /usr/local/Cellar/node/7.6.0/lib/node_modules/json-splora/node_modules/electron
> node install.js

/usr/local/Cellar/node/7.6.0/bin/jsplora -> /usr/local/Cellar/node/7.6.0/lib/node_modules/json-splora/bin/jsplora

> json-splora@1.0.2 install /usr/local/Cellar/node/7.6.0/lib/node_modules/json-splora
> node bin/install

WARNING: Unable to find a package.json for this project, installation aborted.
json-splora@1.0.2 /usr/local/Cellar/node/7.6.0/lib/node_modules/json-splora
├── electron-default-menu@1.0.0
├── is-url@1.2.2
├── json5@0.5.1
├── git-validate@2.2.2
├── menu@0.2.5 (keypress@0.2.1, clivas@0.2.0)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── electron-context-menu@0.8.0 (electron-is-dev@0.1.2, electron-dl@1.6.0)
├── superagent@3.4.4 (methods@1.1.2, component-emitter@1.2.1, cookiejar@2.1.0, extend@3.0.0, mime@1.3.4, formidable@1.1.1, qs@6.3.1, debug@2.6.1, readable-stream@2.2.3, form-data@2.1.2)
├── electron-config@0.2.1 (conf@0.11.2)
├── jquery@3.1.1
├── proxyquire@1.7.11 (module-not-found-error@1.0.1, fill-keys@1.0.2, resolve@1.1.7)
├── js-beautify@1.6.11 (nopt@3.0.6, config-chain@1.1.11, editorconfig@0.13.2)
├── jsonlint@1.6.2 (nomnom@1.8.1, JSV@4.0.2)
├── codemirror@5.24.2
├── node-jq@0.5.0 (strip-eof@1.0.0, tempfile@1.1.1, is-valid-path@0.1.1, download@5.0.3, bin-build@2.2.0)
└── electron@1.4.15 (extract-zip@1.6.0, electron-download@3.3.0)
» touch test.json
» jsplora test.json
zsh: command not found: jsplora
wellsjo commented 7 years ago

The warnings I believe are happening because git-validate is a dev dependency, and isn't published with production. I'm not sure why that's happening though. It installs on v7.6.0 on my machine (macOS)

ghost commented 7 years ago

I don't think it's just an OS X problem - Debian Testing

voltagex@devbox:~$ npm i -g json-splora
/home/voltagex/.npm-global/bin/jsplora -> /home/voltagex/.npm-global/lib/node_modules/json-splora/bin/jsplora

> json-splora@1.0.2 install /home/voltagex/.npm-global/lib/node_modules/json-splora
> node bin/install

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

> git-validate@2.2.2 install /home/voltagex/.npm-global/lib/node_modules/json-splora/node_modules/git-validate
> node bin/install

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

> node-jq@0.5.4 postinstall /home/voltagex/.npm-global/lib/node_modules/json-splora/node_modules/node-jq
> npm run install-binary

> node-jq@0.5.4 install-binary /home/voltagex/.npm-global/lib/node_modules/json-splora/node_modules/node-jq
> node scripts/install-binary.js

jq installed successfully on /home/voltagex/.npm-global/lib/node_modules/json-splora/node_modules/node-jq/bin

> electron@1.6.11 postinstall /home/voltagex/.npm-global/lib/node_modules/json-splora/node_modules/electron
> node install.js

+ json-splora@1.0.2
added 535 packages, removed 904 packages and updated 17 packages in 51.183s