-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t2: command not found #1386
Comments
I'm getting this too.
My |
@HipsterBrown I have tried both commands. The first one returns |
@newcasio Are you on Linux or another OS? What version of Node and npm are you using? |
@HipsterBrown Mac OS. |
Ok if you uninstall |
Sorry about the formatting but this is the output.
|
It appears to be installing correctly. What does |
No output. It just goes to the next command line. danith-thais-imac:tessel daniththai$ which t2 |
Ok I think I might know the issue. I don't think your terminal PATH is set up to look under If you have a
|
I did originally have the EACCES issue that is mentioned on the Tessel installation page and followed the directions on the npmjs page which includes running the When running |
Hello, Please be careful as it probably has changed since when I used tessel last. Tam, just trying to be a good citizen |
@newcasio |
@HipsterBrown Thankyou very much for your help. I went missing for a little bit there, but have comeback to try with your suggestion, and all is working now. |
Hello Folks,
sitting here on Ubuntu 14.04, with Node.JS 6.10, and cannot install Tessel CLI. The NPM installation process runs, but does not create the t2 binary:
tamhan@TAMHAN14:~$ sudo npm -g install t2-cli
. . .
npm ERR! Linux 4.4.0-101-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "-g" "install" "t2-cli"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! path /home/tamhan/.npm-packages/lib/node_modules/t2-cli
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/home/tamhan/.npm-packages/lib/node_modules/t2-cli'
npm ERR! enoent ENOENT: no such file or directory, access '/home/tamhan/.npm-packages/lib/node_modules/t2-cli'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /home/tamhan/npm-debug.log
tamhan@TAMHAN14:~$
tamhan@TAMHAN14:
$ rm /home/tamhan/.npm-packages/lib/node_modules/t2-cli$ mkdir /home/tamhan/.npm-packages/lib/node_modules/t2-clitamhan@TAMHAN14:
tamhan@TAMHAN14:
$ sudo npm -g install t2-cli$ t2tamhan@TAMHAN14:
t2: command not found
tamhan@TAMHAN14:~$ sudo npm -g install t2-cli
/home/tamhan/.npm-packages/bin/t2 -> /home/tamhan/.npm-packages/lib/node_modules/t2-cli/bin/tessel-2.js
/home/tamhan/.npm-packages/bin/cargo-tessel -> /home/tamhan/.npm-packages/lib/node_modules/t2-cli/bin/cargo-tessel.js
sh: 1: t2: not found
sh: 1: t2: not found
/home/tamhan/.npm-packages/lib
└── t2-cli@0.1.17
tamhan@TAMHAN14:~$
Furthermore, here is the log for the failed installation:
...
14928 silly generateActionsToTake Starting
14929 silly install generateActionsToTake
14930 warn checkPermissions Missing write access to /home/tamhan/.npm-packages/lib/node_modules/t2-cli
14931 silly rollbackFailedOptional Starting
14932 silly rollbackFailedOptional Finishing
14933 silly runTopLevelLifecycles Finishing
14934 silly install printInstalled
14935 verbose stack Error: ENOENT: no such file or directory, access '/home/tamhan/.npm-packages/lib/node_modules/t2-cli'
14935 verbose stack at Error (native)
14936 verbose cwd /home/tamhan
14937 error Linux 4.4.0-101-generic
14938 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "-g" "install" "t2-cli"
14939 error node v6.10.3
14940 error npm v3.10.10
14941 error path /home/tamhan/.npm-packages/lib/node_modules/t2-cli
14942 error code ENOENT
14943 error errno -2
14944 error syscall access
14945 error enoent ENOENT: no such file or directory, access '/home/tamhan/.npm-packages/lib/node_modules/t2-cli'
14946 error enoent ENOENT: no such file or directory, access '/home/tamhan/.npm-packages/lib/node_modules/t2-cli'
14946 error enoent This is most likely not a problem with npm itself
14946 error enoent and is related to npm not being able to find a file.
14947 verbose exit [ -2, true ]
The text was updated successfully, but these errors were encountered: