Open joeytitans opened 4 years ago
Hey @joeytitans,
It seems NativeScript CLI is successfully installed, but the location of the executable is not part of your PATH. You can try adding the following line to your ~/.bashrc
or ~/.bash_profile
:
export PATH=/Users/myuser/.npm-global/bin:$PATH
After that restart your terminal and execute tns --version
to verify it works.
Environment
Describe the bug I am attempting to update the CLI to 6.1.2 however am having some issues during the upgrade process. I follow the upgrade instructions in the documentation by running 'npm install -g nativescript' which then prints out the following:
However when checking the version using 'tns --version' it still shows 5.1.0.
I have attempted to completely uninstall the CLI and to confirm I check that it is completely uninstalled by attempting to run a tns command, as well as checking 'which tns' - both of which seems to show it is completely deleted. However, reinstalling nativescript always leads it back to 5.1.0.
Running the command 'which tns' results in the following path:
/usr/local/bin/tns
At this point I am stuck as to what to do to fix this, however my belief is that the issue lies in the path above not being equal to the path showed during the install process of /.npm-global/lib/node_modules/nativescript. Any help would be greatly appreciated.
Thank you!