Closed asimkt closed 8 years ago
I can see .npm/
folder with all those packages. and another $npmdir/.npm-packages
with nothing.
Attaching my bashrc:
This is not a support forum. Try asking on Stack Overflow ;)
@sindresorhus :) I thought, since you have the link to that script, you could help. (https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md) Anyway I reinstalled every package which uninstalled by that script.
Open an issue on https://github.com/glenpike/npm-g_nosudo Might be something they can do there.
I've tried to remove sudo for installing npm_packages using https://github.com/glenpike/npm-g_nosudo.
I've used wget.
And I think it removed all my packages and reinstalled it. (I suppose).
And in the end I got this in the terminal:
Then I copied the code from
export NPM_PACKAGES="npm"
toexport MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
like said in the terminal message and I pasted it in bashrc and saved. (sudo gedit ~/.bashrc
)Then I source the bashrc
source ~/.bashrc
But still no packages are available. (
gulp
,yo
etc)Please help me! I can provide more details.