t2-cli: Linux install still not working

Installed CLI from master on a Linux machine, t2 list did nothing (and resolved in under a second), sudo t2 install-drivers returns command not found.

What is the expected interaction?

cc @johnnyman727

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 20 (7 by maintainers)

Most upvoted comments

Hi,

Works on Ubuntu 14.04, npm 3.8.3, and node v5.10.1 using this command :

sudo /opt/node/bin/node /opt/node/lib/node_modules/t2-cli/bin/tessel-2.js install-drivers

And this udev rule file:

SUBSYSTEM=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="7551", ENV{ID_MM_DEVICE_IGNORE}="1", MODE="0666", GROUP="plugdev"

Reload udev rule :

sudo udevadm control --reload-rules

@juanmanavarro Sorry. Here it is :

sudo nano /etc/udev/rules.d/85-tessel.rules

@huseyinkozan and all - I had node installed with nvm and ended up having to do the following to get it working: sudo /home/MY_USERNAME/.nvm/versions/node/v6.2.0/bin/node /home/MY_USERNAME/.nvm/versions/node/v6.2.0/lib/node_modules/t2-cli/bin/tessel-2.js install-drivers

Hope this helps someone else out in the future. Thanks!

Hello,

I face this situation after having upgraded quite a lot of things on Ubuntu 14.04 LTS:

`12568 (2016-04-09 12:20:46) alain@alain-Vostro-3500 ~ $sudo npm install -g t2-cli /home/alain/.npm-global/bin/t2 -> /home/alain/.npm-global/lib/node_modules/t2-cli/bin/tessel-2.js

usb@1.1.1 install /home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb node-pre-gyp install --fallback-to-build

gyp WARN EACCES user “root” does not have permission to access the dev dir “/home/alain/.node-gyp/4.4.2” gyp WARN EACCES attempting to reinstall using temporary dev dir “/home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb/.node-gyp” make: entrant dans le répertoire « /home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb/build » make: *** Pas de règle pour fabriquer la cible « …/.node-gyp/4.4.2/include/node/common.gypi », nécessaire pour « Makefile ». Arrêt. make: quittant le répertoire « /home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb/build » gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 3.13.0-85-generic gyp ERR! command “/usr/bin/nodejs” “/home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “build” “–fallback-to-build” “–module=/home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb/src/binding/usb_bindings.node” “–module_name=usb_bindings” “–module_path=/home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb/src/binding” gyp ERR! cwd /home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb gyp ERR! node -v v4.4.2 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/bin/nodejs /home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb/src/binding’ (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:87:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:827:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) node-pre-gyp ERR! System Linux 3.13.0-85-generic node-pre-gyp ERR! command “/usr/bin/nodejs” “/home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build” node-pre-gyp ERR! cwd /home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb node-pre-gyp ERR! node -v v4.4.2 node-pre-gyp ERR! node-pre-gyp -v v0.6.26 node-pre-gyp ERR! not ok Failed to execute ‘/usr/bin/nodejs /home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home/alain/.npm-global/lib/node_modules/t2-cli/node_modules/usb/src/binding’ (1) /home/alain/.npm-global/lib └── (empty)

npm WARN In usb@1.1.1 replacing bundled version of node-pre-gyp with node-pre-gyp@0.6.26 npm ERR! Linux 3.13.0-85-generic npm ERR! argv “/usr/bin/nodejs” “/usr/local/bin/npm” “install” “-g” “t2-cli” npm ERR! node v4.4.2 npm ERR! npm v3.8.6 npm ERR! code ELIFECYCLE

npm ERR! usb@1.1.1 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the usb@1.1.1 install script ‘node-pre-gyp install --fallback-to-build’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the usb package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs usb npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls usb npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/alain/npm-debug.log npm ERR! code 1 12569 (2016-04-09 12:21:51) alain@alain-Vostro-3500 ~ $npm ls usb /home/alain └── usb@1.1.2 `

Any idea???