BitShares Forum

Main => Technical Support => Topic started by: islandking on November 22, 2014, 06:57:08 pm

Title: Linux Error Help
Post by: islandking on November 22, 2014, 06:57:08 pm
I am trying to install the Bitshares wallet on Linux Mint 17
and I am getting this error when I am running "npm install"

npm ERR! install Couldn't read dependencies
npm ERR! Error: ENOENT, open '/home/*****/bitshares/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/****/bitshares
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/*****/bitshares/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/****/bitshares/npm-debug.log
npm ERR! not ok code 0
Title: Re: Linux Error Help
Post by: Riverhead on November 22, 2014, 07:04:58 pm
Run it with sudo. I know the instructions don't say to but sometimes it's the only way I can get it to work.

Actually instead try sudo apt-get install nodejs-legacy
Title: Re: Linux Error Help
Post by: islandking on November 22, 2014, 07:09:58 pm
Run it with sudo. I know the instructions don't say to but sometimes it's the only way I can get it to work.

Actually instead try sudo apt-get install nodejs-legacy

I ran that command and I got this message:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
nodejs-legacy is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 389 not upgraded.
Title: Re: Linux Error Help
Post by: Riverhead on November 22, 2014, 07:10:51 pm
ok, go the sudo npm install route then.
Title: Re: Linux Error Help
Post by: islandking on November 22, 2014, 07:12:27 pm
ok, go the sudo npm install route then.

I got the same error once again

npm ERR! install Couldn't read dependencies
npm ERR! Error: ENOENT, open '/home/***8/bitshares/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/***/bitshares
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/***/bitshares/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/****/bitshares/npm-debug.log
npm ERR! not ok code 0
Title: Re: Linux Error Help
Post by: islandking on November 22, 2014, 07:15:30 pm
I received an error after using the command "cd bitshares"
It gives me this error: "bash:  cd: bitshares: No such file or directory"
Title: Re: Linux Error Help
Post by: Riverhead on November 22, 2014, 07:20:52 pm
I received an error after using the command "cd bitshares"
It gives me this error: "bash:  cd: bitshares: No such file or directory"

Have you cloned the source from git yet? If so, remember it is case sensitive and they changed some letters to capitals.
Title: Re: Linux Error Help
Post by: busygin on November 22, 2014, 07:22:20 pm
That's because he did cd bitshares when already in bitshares directory

I received an error after using the command "cd bitshares"
It gives me this error: "bash:  cd: bitshares: No such file or directory"

Have you cloned the source from git yet? If so, remember it is case sensitive and they changed some letters to capitals.
Title: Re: Linux Error Help
Post by: islandking on November 22, 2014, 07:22:43 pm
I received an error after using the command "cd bitshares"
It gives me this error: "bash:  cd: bitshares: No such file or directory"

Have you cloned the source from git yet? If so, remember it is case sensitive and they changed some letters to capitals.

Tried the steps again and when I get to "npm install"
I get this error:

npm WARN package.json bitshares-gui@0.0.1 No repository field.
npm http GET https://registry.npmjs.org/lineman-angular
npm http GET https://registry.npmjs.org/lineman-less
npm http 304 https://registry.npmjs.org/lineman-less
npm ERR! Error: EACCES, mkdir '/home/****/tmp/npm-17543-NDrxYfj9'
npm ERR!  { [Error: EACCES, mkdir '/home/****/tmp/npm-17543-NDrxYfj9']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/home/*****/tmp/npm-17543-NDrxYfj9' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/****/bitshares/programs/web_wallet
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/*****/tmp/npm-17543-NDrxYfj9
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/home/********/tmp/npm-17543-NDrxYfj9'
npm http 304 https://registry.npmjs.org/lineman-angular
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/linux/*****/programs/web_wallet/npm-debug.log
npm ERR! not ok code 0
Title: Re: Linux Error Help
Post by: Riverhead on November 22, 2014, 07:24:20 pm
Try it as root (sudo npm install) from in the web_wallet directory.
Title: Re: Linux Error Help
Post by: islandking on November 22, 2014, 07:31:25 pm
Try it as root (sudo npm install) from in the web_wallet directory.

I *think* that it worked. I received a bunch of green HTTP links and no errors. and I did the " make buildweb" and the "make BitShares" Is there any more steps I need to follow?
Title: Re: Linux Error Help
Post by: Riverhead on November 22, 2014, 07:38:32 pm
For ease of use I'd do this:

go to the programs/qt_wallet/bin
sudo cp Bitshares /usr/local/bin/.

That way it's on the path.

Congrats on getting it built :).
Title: Re: Linux Error Help
Post by: islandking on November 22, 2014, 07:41:56 pm
For ease of use I'd do this:

go to the programs/qt_wallet/bin
sudo cp Bitshares /usr/local/bin/.

go to the programs/qt_wallet/bin
sudo cp Bitshares /usr/local/bin/.

That way it's on the path.

Congrats on getting it built :).
Report to moderator   Logged


That way it's on the path.

Congrats on getting it built :).

Thanks Riverhead for your help!  +5% I finally got it to work. Now I see the user agreement and registration page. So I assume that everything is done now? Where are my private keys stored so I can make a copy of them?
Title: Re: Linux Error Help
Post by: Riverhead on November 22, 2014, 07:45:38 pm
They'll be in the ~/.Bitshares/wallets/default directory.

However the easiest way is to do it from the client File->Export Wallet and save it somewhere easy to find. Another option is just tar.gz your wallets directory.