V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
glacial
V2EX  ›  Node.js

Mac 下 npm install fsevents 失败

  •  1
     
  •   glacial · Jan 2, 2020 · 9912 views
    This topic created in 2319 days ago, the information mentioned may be changed or developed.

    如题 我在安装的时候报此错,这意思是要我装 xcode 吗,我看 xcode 要 8 个 G 这也太坑了吧。 截屏 2020-01-02 下午 6.43.15.png

    Supplement 1  ·  Jan 2, 2020
    问题觖决 安装完 xcode 就没问题了
    11 replies    2020-01-02 21:14:36 +08:00
    wangyzj
        1
    wangyzj  
       Jan 2, 2020
    试试加 --unsafe-perm
    或者 yarn
    wangyzj
        2
    wangyzj  
       Jan 2, 2020
    xcode 得装
    glacial
        3
    glacial  
    OP
       Jan 2, 2020
    @wangyzj yarn add fsevents 也不行
    glacial
        4
    glacial  
    OP
       Jan 2, 2020
    @wangyzj 8G 啊 就为了这个 8G 也太坑了吧
    usw
        5
    usw  
       Jan 2, 2020
    试试 xcode-select 吧
    vitovan
        6
    vitovan  
       Jan 2, 2020 via Android
    yarn install --ignore-optional


    那个智障玩意儿从来都没有安装成功过,也从来都没有真正用到过, 忽略掉一般没毛病。
    monsterxx03
        7
    monsterxx03  
       Jan 2, 2020 via iPhone
    你不是因为 fsevent 失败,是 node-gyp 安装失败,这个必须要 xcode,fsevent 不都写着 skipping 了
    justin2018
        8
    justin2018  
       Jan 2, 2020
    node-gyp 没有一次成功

    linux 秒安装好~~ 囧
    glacial
        9
    glacial  
    OP
       Jan 2, 2020
    @monsterxx03 不是 node-gyp 的问题 我装完 xcode 在执行一次 yarn instal fsevents 就好了
    Chingim
        10
    Chingim  
       Jan 2, 2020
    安装 Command Line Tools 就行了: xcode-select --install
    beyoung
        11
    beyoung  
       Jan 2, 2020
    第一行信息提示的很明显了呀
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3461 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 10:41 · PVG 18:41 · LAX 03:41 · JFK 06:41
    ♥ Do have faith in what you're doing.