例如,我想安装7.9或7.10,但想避免 node 8,因为webpack node-sass
destruct 错误.
当我跑brew search node
时,我看到的是:
❯ brew search node leafnode llnode node ✔ node-build > node@0.10 node@0.12 node@4 node@6 nodebrew nodeenv nodenv caskroom/cask/node-profiler
如果你具体指的是" node ":
有一个 node 被选中(我当前的版本是v7.4.0
,然后是node@0.10
、node@0.12
、node@4
和node@6
?
我不能完全升级到8的原因是 node sass在webpack中无法工作.
刚刚安装了NVM,得到了这个疯狂的错误日志(log):
=> nvm source string already in /Users/leongaban/.zshrc
=> Appending bash_completion source string to /Users/leongaban/.zshrc
npm ERR! missing: is-path-cwd@^1.0.0, required by del@3.0.0
npm ERR! missing: is-path-in-cwd@^1.0.0, required by del@3.0.0
npm ERR! missing: p-map@^1.1.1, required by del@3.0.0
npm ERR! missing: pify@^3.0.0, required by del@3.0.0
npm ERR! missing: rimraf@^2.2.8, required by del@3.0.0
npm ERR! missing: bluebird@^3.1.1, required by gulp-html-replace@1.6.2
npm ERR! missing: clone@^1.0.2, required by gulp-html-replace@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
?
使现代化
我将导出行添加到我的.zshrc bash(我不使用bash_配置文件)
❯ nvm --version
0.33.2