node.js - how to fix $PATH in Virtual Box Ubuntu 14.04 after npm global install -
i've been trying install npm globally in virtual box ubuntu 14.04 , apache 2.4 various problems laravel 5.1
reading through docs on npm adn following through these instructions https://docs.npmjs.com/getting-started/fixing-npm-permissions know have completed wrecked $path
previously when ran echo $path got this;
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games
now when echo $path following;
/usr/local/bin:/bin
i have managed stuff on laravel install, composer no longer works, php artisan no longer works - wondering if able me was...
for novices may struggling this, got path, composer, artisan , laravel functioning first, replacing .bashrc non corrupt 1 in terminal /etc/skel directory (in local indicated $)
$cp /etc/skel/.bashrc ~/
commit changes with
$source ~/.bashrc
then used following export /usr/bin path - error attempted in terminal "the command not located because '/usr/bin' not included in path"
$export path="/usr/bin:$path"
to permanently commit changes
$sudo nano /etc/environment
check file contains following
path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
ctrl & x save , y
Comments
Post a Comment