packages previously installed globally through npm fail when nvm changes versions
cnpm no damn commands can be used,
how to solve it?
packages previously installed globally through npm fail when nvm changes versions
cnpm no damn commands can be used,
how to solve it?
for example, if you previously used node v6.10.0 and have related global packages, now you want to use v8.10.0:
if you install with nvm install v8.10.0
, V8 does not have V6-related global packages, you can use -- reinstall-packages-from= < version >
install
nvm install v8.10.0 --reinstall-packages-from=v6.10.0