phani.s
February 14, 2017, 3:59pm
#1
Hi,
I just started with the Matrix creator board and I am trying to install matrix-cli on my local machine. But, I am not able to proceed because of some errors. Can someone help me resolve this?
npm ERR! Error: ENOENT, lstat ‘/usr/local/lib/node_modules/matrix-cli/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/dashdash/lib/dashdash.js’
npm ERR! System Linux 4.4.0-62-generic
npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “install” “-g” "matrix-cli"
npm ERR! cwd /home/phanindra
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /usr/local/lib/node_modules/matrix-cli/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/dashdash/lib/dashdash.js
npm ERR! fstream_path /usr/local/lib/node_modules/matrix-cli/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/dashdash/lib/dashdash.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat ‘/usr/local/lib/node_modules/matrix-cli/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/tweetnacl/nacl.js’
1 Like
loorlab
February 15, 2017, 6:18am
#2
Hi Friend, please check https://matrix-io.github.io/matrix-documentation/ .
The possible cause is: that you are missing the sudo command --> “Install MATRIX CLI via npm sudo npm install -g matrix-cli ”
Regards !
phani.s
February 15, 2017, 8:59am
#3
Hi @loorlab ,
Thanks for your reply. But, I am following the same link and the same commands.
As in “sudo npm install -g matrix-cli” . Yet fails with the above error.!
Regards
1 Like
loorlab
February 15, 2017, 2:47pm
#4
Hi Friend, Try to install NODE again --> https://nodejs.org/en/download/package-manager/ Greetings
phani.s
February 21, 2017, 12:00pm
#5
Hi @loorlab ,
Thanks. I installed NODE again and was able to successfully do
sudo npm install -g matrix-cli.
But, now when I give matrix in the command line, I dont get the Matrix screen. Please let me know if anything is missing
Regards!
1 Like
loorlab
February 21, 2017, 6:14pm
#6
Ok Friend, please following steps again -->
Target the proper environment matrix set env rc.
With MATRIX CLI installed on your computer, register an account with MATRIX via matrix register .
Log into your account using matrix login .
Once registered an account, run matrix register device .
Enter a device name and (optional) device description.
After a few moments you will be provided with a MATRIX_DEVICE_ID and MATRIX_DEVICE_SECRET.
Select your device using matrix use, and enter your device ID. Command examples will be provided for easy copy paste.
Please check this video https://www.youtube.com/watch?v=ckDD6HEjfAY .
Regards !
1 Like