by cridenour · 8y ago · 0 comments
Maybe it's just me, but every upgrade corrupts the global node_modules.
You could try using something like nvm which has a command to migrate your old global modules.
nvm install node --reinstall-packages-from=node
https://github.com/tj/n/pull/475/files
I guess nvm is better, needs some polishing, though (error prone for scripted usage, because of unpredictable exit > 0 behavior.