-
Notifications
You must be signed in to change notification settings - Fork 115
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
怎样使它像nvm一样,npm和node都是各自隔离的呢? #13
Comments
目前没有关于 |
是呀,之前遇到过这样的坑。在切换node版本时,却由于全局的npm包共用同一份,在编译代码时可能有错,如果使用了全局包的话。 |
okay,我把它加到 |
我在用的是nvm-windows版本,朋友推荐gnvm,所以过来看看,在nvm,npm是 跟着下载的node版本走的,这样全局安装的包就不会有不兼容问题(因为不共用)。我还看到nvm有一个reinstall-package-from的用法,可以从特定版本导入安装包,这个减轻了更换版本时要重新安装各种全局包的操作,不过貌似nvm-windows 不支持这个选项。 |
@shellphon 目前 当然会借鉴同类工具的特点。 |
现在好像和n一样,node虽然可以切换,但它的npm共用一个,全局安装的包可能会出现版本问题。
The text was updated successfully, but these errors were encountered: