简体   繁体   English

如何使我的环境使用当前(ish)节点?

[英]How do I make my environment use current(ish) node?

Node Sass could not find a binding for your current environment: 
OS X 64-bit with Node.js 4.x

Found bindings for the following environments:
  - OS X 64-bit with Node.js 6.x

I get that. 我明白了。 Sort of. 有点。 Except: node -v => v6.9.2 除外: node -v => v6.9.2

So what is it getting my current environment from? 那么,从当前环境中获得什么呢? I'm using nvm to manage node versions.. but I'm getting conflicting information about what version of node I'm running. 我正在使用nvm来管理节点版本。但是我收到有关正在运行的节点版本的信息冲突。

I also followed these instructions to upgrade 我还按照这些说明进行了升级

How to I just use v6.9.2 everywhere? 我如何只在各处使用v6.9.2?

NVM manages node versions separately by shell and doesn't persist a set version. NVM通过外壳单独管理节点版本,并且不保留设置的版本。 You can set the default version by using nvm alias default v6.9.2 您可以使用nvm alias default v6.9.2 设置默认版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM