segmentation fault报错 node

在mac 的终端中输入node 或者npm 的时候会出现这样的

[1]    19809 segmentation fault  node -v

查询很久没找到解决办法

阅读 6.2k
1 个回答

sudo n 8.2.1(最新稳定版即可)

8.2.1 最新稳定版本号可以通过网页查询或是直接使用 brew(mac必备)。

brew info node
node: stable 8.2.1 (bottled), HEAD
Platform built on V8 to build network applications
https://nodejs.org/
/usr/local/Cellar/node/7.2.1 (16,400 files, 103.5MB)
  Poured from bottle on 2016-12-12 at 16:21:09
/usr/local/Cellar/node/7.9.0 (3,078 files, 39.7MB)
  Poured from bottle on 2017-04-24 at 15:23:50
/usr/local/Cellar/node/7.10.0 (3,084 files, 39.8MB) *
  Poured from bottle on 2017-07-03 at 11:59:23

#省略...
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题