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

前端 未结 7 1669
庸人自扰
庸人自扰 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

    I was also facing this error when installing Redux:

    $ npm install --save react-redux
    npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
    npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
    

    What solved the issue was to add --no-optional (argument will prevent optional dependencies from being installed):

    npm install --no-optional --save react-redux
                ^^^^^^^^^^^^^
    

    And now it is correctly installed:

    $ npm ls redux
    ReduxProject@ /home/me/projects/reduxproject
    └── redux@3.5.2 
    

提交回复
热议问题