Cannot install matrix-cli on local machine

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

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 !

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

Hi Friend, Try to install NODE again --> https://nodejs.org/en/download/package-manager/ Greetings

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

Ok Friend, please following steps again -->

  1. Target the proper environment matrix set env rc.
  2. With MATRIX CLI installed on your computer, register an account with MATRIX via matrix register.
  3. Log into your account using matrix login.
  4. Once registered an account, run matrix register device.
  5. Enter a device name and (optional) device description.
  6. After a few moments you will be provided with a MATRIX_DEVICE_ID and MATRIX_DEVICE_SECRET.
  7. 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