Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Trying to use at UBUNTU 16 LTS #46

Closed
ppKrauss opened this issue Jan 31, 2018 · 8 comments
Closed

Trying to use at UBUNTU 16 LTS #46

ppKrauss opened this issue Jan 31, 2018 · 8 comments

Comments

@ppKrauss
Copy link

Using Ubuntu 16.04.3 LTS (xenial)

Anuar Ustayev @anuveyatsu 08:56
@ppKrauss @rufuspollock this is explained here http://datahub.io/docs/getting-started/installing-data#installing-binaries the problem is with xdg-open library on Linux

Peter @ppKrauss 09:00
Suggestion: change page http://datahub.io/docs/getting-started/installing-data#installing-binaries to link http://datahub.io/docs/getting-started/installing-data#installing-binaries
Hi @anuveyatsu , I do the cp /usr/bin/xdg-open /usr/local/bin/xdg-open, perhps need reboot. At now no effect, the login stops at prompt, "? Login with...
❯ Github"

Anuar Ustayev @anuveyatsu 09:04
@ppKrauss so after hitting enter, it doesn’t open your default browser?

Peter @ppKrauss 09:04
Thanks @rufuspollock , I will report at there
@anuveyatsu , after wait and ENTER ... "> Opening browser and waiting for you to authenticate online

Error! spawn /home/user/Downloads/working/DATAHUB/xdg-open ENOENT
@ppKrauss
Copy link
Author

ppKrauss commented Jan 31, 2018

About complete installation of datahub-cli by npm,

npm install -g datahub-cli
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!   stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2018-01-31T08_09_41_603Z-debug.log
sudo npm install -g datahub-cli
[sudo] senha para user: 
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone -q https://github.com/anuveyatsu/datapackage-js-temp.git /home/user/.npm/_cacache/tmp/git-clone-62cbe6a0
npm ERR! /home/user/.npm/_cacache/tmp/git-clone-62cbe6a0/.git: Permissão negada
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2018-01-31T08_09_53_269Z-debug.log

log file

/home/user/.npm/_logs/2018-01-31T08_09_53_269Z-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   '-g',
1 verbose cli   'datahub-cli' ]
2 info using npm@5.6.0
3 info using node@v8.8.1
4 verbose npm-session bd18dc88ac504b39
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 200 https://registry.npmjs.org/datahub-cli 27ms (from cache)
8 silly pacote tag manifest for datahub-cli@latest fetched in 73ms
9 silly install loadIdealTree
10 silly install cloneCurrentTreeToIdealTree
11 silly install loadShrinkwrap
12 silly install loadAllDepsIntoIdealTree
13 silly resolveWithNewModule datahub-cli@0.6.3 checking installable status
14 http fetch GET 200 https://registry.npmjs.org/data.js 114ms (from cache)
15 http fetch GET 200 https://registry.npmjs.org/datahub-client 116ms (from cache)
16 http fetch GET 200 https://registry.npmjs.org/human-readable-ids 109ms (from cache)
17 http fetch GET 200 https://registry.npmjs.org/inquirer-test 107ms (from cache)
18 silly pacote range manifest for data.js@^0.9.11 fetched in 126ms
19 silly resolveWithNewModule data.js@0.9.12 checking installable status
20 silly pacote range manifest for datahub-client@^0.1.3 fetched in 130ms
21 silly resolveWithNewModule datahub-client@0.1.5 checking installable status
22 silly pacote range manifest for human-readable-ids@^1.0.3 fetched in 123ms
23 silly resolveWithNewModule human-readable-ids@1.0.3 checking installable status
24 silly pacote range manifest for inquirer-test@^1.0.5 fetched in 126ms
25 silly resolveWithNewModule inquirer-test@1.0.5 checking installable status
26 http fetch GET 304 https://registry.npmjs.org/ansi-escapes 377ms (from cache)
27 http fetch GET 304 https://registry.npmjs.org/chalk 377ms (from cache)
28 http fetch GET 304 https://registry.npmjs.org/marked 365ms (from cache)
29 http fetch GET 304 https://registry.npmjs.org/clipboardy 379ms (from cache)
30 http fetch GET 304 https://registry.npmjs.org/inquirer 372ms (from cache)
31 silly pacote range manifest for ansi-escapes@^3.0.0 fetched in 388ms
32 silly resolveWithNewModule ansi-escapes@3.0.0 checking installable status
33 silly pacote range manifest for chalk@^2.3.0 fetched in 392ms
34 silly resolveWithNewModule chalk@2.3.0 checking installable status
...
56 silly resolveWithNewModule pkg@4.3.0 checking installable status
57 silly pacote range manifest for xlsx@^0.10.8 fetched in 33ms
58 silly resolveWithNewModule xlsx@0.10.9 checking installable status
59 http fetch GET 304 https://registry.npmjs.org/url-join 51ms (from cache)
60 silly pacote range manifest for url-join@^2.0.2 fetched in 53ms
61 silly resolveWithNewModule url-join@2.0.5 checking installable status
62 silly fetchPackageMetaData error for datapackage@git+https://github.com/anuveyatsu/datapackage-js-temp.git Command failed: /usr/bin/git clon
e -q https://github.com/anuveyatsu/datapackage-js-temp.git /home/user/.npm/_cacache/tmp/git-clone-62cbe6a0
62 silly fetchPackageMetaData /home/user/.npm/_cacache/tmp/git-clone-62cbe6a0/.git: Permissão negada
63 verbose stack Error: Command failed: /usr/bin/git clone -q https://github.com/anuveyatsu/datapackage-js-temp.git /home/user/.npm/_cacache/tm
p/git-clone-62cbe6a0
63 verbose stack /home/user/.npm/_cacache/tmp/git-clone-62cbe6a0/.git: Permissão negada
63 verbose stack
63 verbose stack     at ChildProcess.exithandler (child_process.js:272:12)
63 verbose stack     at emitTwo (events.js:125:13)
63 verbose stack     at ChildProcess.emit (events.js:213:7)
63 verbose stack     at maybeClose (internal/child_process.js:927:16)
63 verbose stack     at Socket.stream.socket.on (internal/child_process.js:348:11)
63 verbose stack     at emitOne (events.js:115:13)
63 verbose stack     at Socket.emit (events.js:210:7)
63 verbose stack     at Pipe._handle.close [as _onclose] (net.js:557:12)
64 verbose cwd /home/user/sandbox
65 verbose Linux 4.4.0-112-generic
66 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "datahub-cli"
67 verbose node v8.8.1
68 verbose npm  v5.6.0
69 error code 1
70 error Command failed: /usr/bin/git clone -q https://github.com/anuveyatsu/datapackage-js-temp.git /home/user/.npm/_cacache/tmp/git-clone-62c
be6a0
70 error /home/user/.npm/_cacache/tmp/git-clone-62cbe6a0/.git: Permissão negada
71 verbose exit [ 1, true ]

@Mikanebu
Copy link
Member

@ppKrauss Thanks for reporting this. We will investigate

@AcckiyGerman
Copy link
Contributor

TESTED: installation failed on a new system (ubuntu 17.04), got the same issue as issue-starter:

sudo npm i -g data-cli
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone -q https://github.com/anuveyatsu/datapackage-js-temp.git /home/andr/.npm/_cacache/tmp/git-clone-d474ac49
npm ERR! /home/andr/.npm/_cacache/tmp/git-clone-d474ac49/.git: Permission denied
npm ERR! 
npm i -g data-cli
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!   stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

So I failed to install data-cli via npm as a User and as a Root 😞
@anuveyatsu could we avoid installation of git packages? Command failed: /usr/bin/git clone -q https://github.com/anuveyatsu/datapackage-js-temp.git

@AcckiyGerman
Copy link
Contributor

FIXED
sudo npm install -g data-cli is now working.
yarn add data-cli works as well.

We still need to automate tests re this issue, but we have an QA tests spreadsheet to track that task.

@AcckiyGerman
Copy link
Contributor

@anuveyatsu I cannot reproduce this error with /usr/local/bin/xdg-open on my ubuntu 16.04.3

Error! spawn /home/user/Downloads/working/DATAHUB/xdg-open ENOENT

question

Why do we copy $ cp /usr/bin/xdg-open /usr/local/bin/xdg-open
I guess the /usr/bin and /usr/local/bin is both in the $PATH ?

@anuveyatsu
Copy link
Member

@AcckiyGerman to reproduce it you need to install using the executable binary file. This issue is described here vercel/pkg#207

I think you're right about $PATH but I never experienced that issue so difficult to say.

@AcckiyGerman
Copy link
Contributor

So, I'm leaving this issue closed, assuming that

  • we reported a bug to the package owners
  • fix is done, but not yet in stable, which is not under our control
  • you update the data-cli dependencies each time when releasing, so we'll got the fix, once guys there will merge it into stable

@ppKrauss
Copy link
Author

Hi, thanks. Only to register, I redo today and worked fine:

All ok!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants