-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
how set up nvm with oh-my-zsh to load globally installed bower, yo , grunt or jshint #635
Comments
Your original globally installed packages must be reinstalled in the What you probably want to do is to run |
yes i did that i completely removed old node_modules and reinstall them using nvm npm |
great, let me know if you still have any issues |
what i meant was i already did that but still it dosen't work |
By default, nvm won't use any particular version. Try |
what i done till now is
everything is fine till here i get node and npm when i open new session but i dont get bower or yo or grunt |
ok so in that new session, what's |
▶ which node ~ ~ ~ |
Ah, |
yes it says |
That's the problem. Remove that line until #606 is resolved, and reinstall your global modules :-) Or, put |
i will try again after removing that line from |
hey it worked thanks, you are awesome 👍 |
np, thanks for working through it. |
Thank you guys for this thread, I thought I was going crazy but this helped! |
Awesome - same issue here, due to previous npm install withou nvm I guess. Thanks a lot. |
what to do if you can't run any commands? |
@anthonybrown what suggested "compaudit"; i've never heard of that? |
First of all my apologizes , i know this question might have been asked so many times in here and all over INTERNET, which has caused much more confusion to this problem, i tried many solutions but none worked so finally, I created this issue, which may also serve as wiki for future users.
Uptil today i used node
v0.10.26
which was released over an year ago, but today i decide to upgrade my node version.I had previously installed node from source which is why i didn't update it for so long, so this time i decided to use nvm , it was super easy to use nvm 👍
But quickly after installing i noticed one problem i couldn't execute my globally installed packages like
yo
orbower
, i google alot and came up with so many useless solutions , i knew it has something to do with .bashrc or .profile or .zshrc but couldn't fix it i have appended following to all above filesso i finally i tried one trick
first i opened bash from terminal and i again opend zsh from terminal which solved my problem only temporarily for that session , i had to do thins whenever i opened new session
This was fine as i can live with this for sometime but when i opened sublime3 i couldn't load
jslint or jshint
, which is when i started digging more to fix this problem because i cannot live without those two plug-inpls help me fix this problem
thanks
The text was updated successfully, but these errors were encountered: