{"id":363,"hash":"b1e5682cee208a0deff2f888c46d99b0ccbe367399f0f9eb07494658f3458345","pattern":"How to solve npm install throwing fsevents warning on non-MAC OS?","full_message":"Following warning is being thrown on npm install command -\n\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\\rea\nct-scripts\\node_modules\\fsevents):\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@\n1.1.2: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"win32\",\"arch\":\"x64\"}\n)\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\\ch\nokidar\\node_modules\\fsevents):\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@\n1.1.2: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"win32\",\"arch\":\"x64\"}\n)\n\nThe warning is apparently causing our Jenkins Job to mark failed, so we are just trying to get rid of the same. \n\nI already checked this https://stackoverflow.com/a/42938398/351903\nBut, unlike what is mentioned there, I do not have any /node_modules/fserrors in my setup. Also, my package.json does not contain fserrors. Following is my package.json - \n\n{\n  \"name\": \"mvc-panel\",\n  \"version\": \"0.1.0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"bootstrap\": \"^3.3.7\",\n    \"jquery\": \"^3.2.1\",\n    \"material-ui\": \"^0.18.3\",\n    \"qs\": \"^6.4.0\",\n    \"react\": \"^15.5.4\",\n    \"react-alert\": \"^2.1.2\",\n    \"react-bootstrap-table\": \"^3.4.1\",\n    \"react-dom\": \"^15.5.4\",\n    \"react-loader\": \"^2.4.2\",\n    \"react-router-dom\": \"^4.1.1\",\n    \"react-tap-event-plugin\": \"^2.0.1\",\n    \"serve\": \"^6.0.0\"\n  },\n  \"devDependencies\": {\n    \"datatables.net\": \"^1.10.15\",\n    \"jquery\": \"^3.2.1\",\n    \"react-scripts\": \"^1.0.7\"\n  },\n  \"scripts\": {\n    \"start\": \"react-scripts start\",\n    \"build\": \"react-scripts build\",\n    \"test\": \"react-scripts test --env=jsdom\",\n    \"eject\": \"react-scripts eject\"\n  }\n}\n\nI can see fsevents in the package.json of react-scripts (which is defined under devDependencies of my package.json) in node_modules\\react-scripts\\package.json - \n\n{\n  \"_args\": [\n    [\n      {\n        \"raw\": \"react-scripts@^1.0.7\",\n        \"scope\": null,\n        \"escapedName\": \"react-scripts\",\n        \"name\": \"react-scripts\",\n        \"rawSpec\": \"^1.0.7\",\n        \"spec\": \">=1.0.7 <2.0.0\",\n        \"type\": \"range\"\n      },\n      \"D:\\\\Sandeepan\\\\Payu MVC\\\\backend codebase\\\\MVC2.0\\\\panel\\\\mvc-panel\"\n    ]\n  ],\n  \"_from\": \"react-scripts@>=1.0.7 <2.0.0\",\n  \"_id\": \"react-scripts@1.0.14\",\n  \"_inCache\": true,\n  \"_location\": \"/react-scripts\",\n  \"_nodeVersion\": \"8.5.0\",\n  \"_npmOperationalInternal\": {\n    \"host\": \"s3://npm-registry-packages\",\n    \"tmp\": \"tmp/react-scripts-1.0.14.tgz_1506471610836_0.5613740666303784\"\n  },\n  \"_npmUser\": {\n    \"name\": \"timer\",\n    \"email\": \"timer150@gmail.com\"\n  },\n  \"_npmVersion\": \"5.3.0\",\n  \"_phantomChildren\": {\n    \"asap\": \"2.0.6\",\n    \"escape-string-regexp\": \"1.0.5\",\n    \"graceful-fs\": \"4.1.11\",\n    \"has-ansi\": \"2.0.0\",\n    \"universalify\": \"0.1.1\"\n  },\n  \"_requested\": {\n    \"raw\": \"react-scripts@^1.0.7\",\n    \"scope\": null,\n    \"escapedName\": \"react-scripts\",\n    \"name\": \"react-scripts\",\n    \"rawSpec\": \"^1.0.7\",\n    \"spec\": \">=1.0.7 <2.0.0\",\n    \"type\": \"range\"\n  },\n  \"_requiredBy\": [\n    \"#DEV:/\"\n  ],\n  \"_resolved\": \"https://registry.npmjs.org/react-scripts/-/react-scripts-1.0.14.tgz\",\n  \"_shasum\": \"70fe76c9beb67b136b953e875bdfe4ad78d410d1\",\n  \"_shrinkwrap\": null,\n  \"_spec\": \"react-scripts@^1.0.7\",\n  \"_where\": \"D:\\\\Sandeepan\\\\Payu MVC\\\\backend codebase\\\\MVC2.0\\\\panel\\\\mvc-panel\",\n  \"bin\": {\n    \"react-scripts\": \"./bin/react-scripts.js\"\n  },\n  \"bugs\": {\n    \"url\": \"https://github.com/facebookincubator/create-react-app/issues\"\n  },\n  \"dependencies\": {\n    \"autoprefixer\": \"7.1.2\",\n    \"babel-core\": \"6.25.0\",\n    \"babel-eslint\": \"7.2.3\",\n    \"babel-jest\": \"20.0.3\",\n    \"babel-loader\": \"7.1.1\",\n    \"babel-preset-react-app\": \"^3.0.3\",\n    \"babel-runtime\": \"6.26.0\",\n    \"case-sensitive-paths-webpack-plugin\": \"2.1.1\",\n    \"chalk\": \"1.1.3\",\n    \"css-loader\": \"0.28.4\",\n    \"dotenv\": \"4.0.0\",\n    \"eslint\": \"4.4.1\",\n    \"eslint-config-react-app\": \"^2.0.1\",\n    \"eslint-loader\": \"1.9.0\",\n    \"eslint-plugin-flowtype\": \"2.35.0\",\n    \"eslint-plugin-import\": \"2.7.0\",\n    \"eslint-plugin-jsx-a11y\": \"5.1.1\",\n    \"eslint-plugin-react\": \"7.1.0\",\n    \"extract-text-webpack-plugin\": \"3.0.0\",\n    \"file-loader\": \"0.11.2\",\n    \"fs-extra\": \"3.0.1\",\n    \"fsevents\": \"1.1.2\",\n    \"html-webpack-plugin\": \"2.29.0\",\n    \"jest\": \"20.0.4\",\n    \"object-assign\": \"4.1.1\",\n    \"postcss-flexbugs-fixes\": \"3.2.0\",\n    \"postcss-loader\": \"2.0.6\",\n    \"promise\": \"8.0.1\",\n    \"react-dev-utils\": \"^4.1.0\",\n    \"style-loader\": \"0.18.2\",\n    \"sw-precache-webpack-plugin\": \"0.11.4\",\n    \"url-loader\": \"0.5.9\",\n    \"webpack\": \"3.5.1\",\n    \"webpack-dev-server\": \"2.8.2\",\n    \"webpack-manifest-plugin\": \"1.2.1\",\n    \"whatwg-fetch\": \"2.0.3\"\n  },\n  \"description\": \"Configuration and scripts for Create React App.\",\n  \"devDependencies\": {\n    \"react\": \"^15.5.4\",\n    \"react-dom\": \"^15.5.4\"\n  },\n  \"directories\": {},\n  \"dist\": {\n    \"integrity\": \"sha512-+p0q2N2WW7L4WW6uObqN7fYwSQZ9fBI0StpMYl1Ukoz/lCbemf+yW6b8refyhTsGy62GAqxlpyEfVcTE3hJAxg==\",\n    \"shasum\": \"70fe76c9beb67b136b953e875bdfe4ad78d410d1\",\n    \"tarball\": \"https://registry.npmjs.org/react-scripts/-/react-scripts-1.0.14.tgz\"\n  },\n  \"engines\": {\n    \"node\": \">=6\"\n  },\n  \"files\": [\n    \"bin\",\n    \"config\",\n    \"scripts\",\n    \"template\",\n    \"utils\"\n  ],\n  \"homepage\": \"https://github.com/facebookincubator/create-react-app#readme\",\n  \"license\": \"MIT\",\n  \"maintainers\": [\n    {\n      \"name\": \"timer\",\n      \"email\": \"timer150@gmail.com\"\n    },\n    {\n      \"name\": \"fb\",\n      \"email\": \"opensource+npm@fb.com\"\n    },\n    {\n      \"name\": \"gaearon\",\n      \"email\": \"dan.abramov@gmail.com\"\n    }\n  ],\n  \"name\": \"react-scripts\",\n  \"optionalDependencies\": {\n    \"fsevents\": \"1.1.2\"\n  },\n  \"readme\": \"ERROR: No README data found!\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/facebookincubator/create-react-app.git\"\n  },\n  \"version\": \"1.0.14\"\n}\n\nUpdate\n\nI tried running the npm install command and getting the exit status of the earlier command. It showed 0 meaning success, despite the warnings. So, it does","ecosystem":"npm","package_name":"node.js","package_version":null,"solution":"fsevents is dealt differently in mac and other linux system. Linux system ignores fsevents whereas mac install it. As the above error message states that fsevents is optional and it is skipped in installation process. \n\nYou can run npm install --no-optional command in linux system to avoid above warning.  \n\nFurther information \n\nhttps://github.com/npm/npm/issues/14185\n\nhttps://github.com/npm/npm/issues/5095","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/46929196/how-to-solve-npm-install-throwing-fsevents-warning-on-non-mac-os","votes":185,"created_at":"2026-04-19T04:51:03.648238+00:00","updated_at":"2026-04-19T04:51:03.648238+00:00"}