例如,我想要安装7.9或7.10,但是由于 webpack node-sass
中断 bug,我想要避免 Node 8。
当我运行 brew search node
时,我看到的是:
Something brew 搜索节点 绿叶节点 llnode something node-build > node@0.10 node@0.12 node@4 node@6 nodebrewnodeenv nodenv Caskroom/cask/node-profiler
如果你特别指的是“节点”: 它是从木桶/木桶转移到自酿/核心。 您可以通过运行以下命令再次访问它: 自酿啤酒自酿啤酒[核心啤酒]
有一个被检查的节点(我当前的版本是 v7.4.0
,然后是 node@0.10
,node@0.12
,node@4
和 node@6
?
我不能完全升级到8的原因是 node-sass 在 webpack 中不起作用。
= > nvm source string already in/Users/leongaban/. zhrc 中的 nvm 源字符串
= > 将 bash _ complete 源字符串追加到/Users/leongaban/. zhrc
Npm ERR! 丢失: is-path-cwd@^ 1.0.0,del@3.0.0需要
Npm ERR! 丢失: is-path-in-cwd@^ 1.0.0,del@3.0.0需要
Npm ERR! 丢失: p-map@^ 1.1.1,del@3.0.0需要
Npm ERR! 丢失: pify@^ 3.0.0,del@3.0.0需要
Npm ERR! 丢失: rimraf@^ 2.2.8,del@3.0.0需要
Npm ERR! 丢失: Bluebird@^ 3.1.1,由 Gulp-html-place@1.6.2所需
Npm ERR! 丢失: clone@^ 1.0.2,Gulp-html-place@1.6.2
...
=> You currently have modules installed globally with `npm`. These will no
=> longer be linked to the active version of Node when you install a new node
=> with `nvm`; and they may (depending on how you construct your `$PATH`)
=> override the binaries of modules installed with `nvm`:
如果我没看错,这是否意味着我不能再使用 npm
在全球范围内安装软件包,而必须使用 nvm
?
我将导出行添加到我的 。 zhrc bash (我不使用 bash _ profile)
❯ nvm --version
0.33.2