Not compatible with your operating system or architecture: fsevents@1.0.11

前端 未结 7 1667
庸人自扰
庸人自扰 2021-01-30 19:33

I\'m using Ubuntu 15.04. While running the following command:

npm install fsevents

I\'m getting following error:

npm WARN optio         


        
7条回答
  •  失恋的感觉
    2021-01-30 20:00

    If you're getting ERR! not WARN a likely cause of this issue is that you're using a really outdated version of NPM

    For me, I shelled into some server, and was like "why won't this work?", getting this error:

    npm ERR! Linux 4.4.0-130-generic
    npm ERR! argv "/home/william/.nvm/versions/node/v4.4.3/bin/node" "/home/william/.nvm/versions/node/v4.4.3/bin/npm" "install"
    npm ERR! node v4.4.3
    npm ERR! npm  v2.15.1
    npm ERR! code EBADPLATFORM
    
    npm ERR! notsup Unsupported
    npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.1.3
    npm ERR! notsup Valid OS:    darwin
    npm ERR! notsup Valid Arch:  any
    npm ERR! notsup Actual OS:   linux
    npm ERR! notsup Actual Arch: x64
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     /home/william/app/mcard-api/npm-debug.log
    

    Turns out this server (that I only recently acquired) was running npm 2.15.1. I re-installed nvm, and nvm install --lts fixed it.

提交回复
热议问题