Fsevents unsupported platform linux

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fsevents doesn’t install on linux #796

fsevents doesn’t install on linux #796

Comments

Hi Guys, I have got the WSK and MDL working on my windows machine at work. Some minor things seem to not work (touch images not copied on gulp serve:dist) but it’s most likely permission issues. Anyhow while trying to get wsk-0.6.0 working in Linux Mint 17.3 I’ve come across this:

~/dev.server/wsk-0.6.0 $ sudo npm install
/home/dev.server/wsk-0.6.0
└── lodash@3.10.1
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.6

Which seems to be important. because it won’t build as a result.
I keep getting this error when I run gulp serve:dist (it doesn’t serve properly any other way either):

~/dev.server/wsk-0.6.0 $ gulp serve:dist
[13:57:31] Requiring external module babel-core/register
/home/dev.server/wsk-0.6.0/gulpfile.babel.js:28
import fs from ‘fs’;
^^^^^^
SyntaxError: Unexpected reserved word
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at loader (/home/dev.server/wsk-0.6.0/node_modules/babel-register/lib/node.js:130:5)
at Object.require.extensions.(anonymous function) as .js
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3)
at Liftoff. (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:192:16)

Читайте также:  Dark souls remastered linux

I’ve tried uninstalling and reinstalling twice now. same error every time. Any suggestions? Thanks in advance.

The text was updated successfully, but these errors were encountered:

Источник

How to solve npm install throwing fsevents warning on non-MAC OS?

The warning is apparently causing our Jenkins Job to mark failed, so we are just trying to get rid of the same. I already checked this https://stackoverflow.com/a/42938398/351903 But, 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 —

I 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 —

< "_args": [ [ < "raw": "react-scripts@^1.0.7", "scope": null, "escapedName": "react-scripts", "name": "react-scripts", "rawSpec": "^1.0.7", "spec": ">=1.0.7 , "D:\\Sandeepan\\Payu MVC\\backend codebase\\MVC2.0\\panel\\mvc-panel" ] ], "_from": "react-scripts@>=1.0.7 , "_npmUser": < "name": "timer", "email": "timer150@gmail.com" >, "_npmVersion": "5.3.0", "_phantomChildren": < "asap": "2.0.6", "escape-string-regexp": "1.0.5", "graceful-fs": "4.1.11", "has-ansi": "2.0.0", "universalify": "0.1.1" >, "_requested": < "raw": "react-scripts@^1.0.7", "scope": null, "escapedName": "react-scripts", "name": "react-scripts", "rawSpec": "^1.0.7", "spec": ">=1.0.7 , "_requiredBy": [ "#DEV:/" ], "_resolved": "https://registry.npmjs.org/react-scripts/-/react-scripts-1.0.14.tgz", "_shasum": "70fe76c9beb67b136b953e875bdfe4ad78d410d1", "_shrinkwrap": null, "_spec": "react-scripts@^1.0.7", "_where": "D:\\Sandeepan\\Payu MVC\\backend codebase\\MVC2.0\\panel\\mvc-panel", "bin": < "react-scripts": "./bin/react-scripts.js" >, "bugs": < "url": "https://github.com/facebookincubator/create-react-app/issues" >, "dependencies": < "autoprefixer": "7.1.2", "babel-core": "6.25.0", "babel-eslint": "7.2.3", "babel-jest": "20.0.3", "babel-loader": "7.1.1", "babel-preset-react-app": "^3.0.3", "babel-runtime": "6.26.0", "case-sensitive-paths-webpack-plugin": "2.1.1", "chalk": "1.1.3", "css-loader": "0.28.4", "dotenv": "4.0.0", "eslint": "4.4.1", "eslint-config-react-app": "^2.0.1", "eslint-loader": "1.9.0", "eslint-plugin-flowtype": "2.35.0", "eslint-plugin-import": "2.7.0", "eslint-plugin-jsx-a11y": "5.1.1", "eslint-plugin-react": "7.1.0", "extract-text-webpack-plugin": "3.0.0", "file-loader": "0.11.2", "fs-extra": "3.0.1", "fsevents": "1.1.2", "html-webpack-plugin": "2.29.0", "jest": "20.0.4", "object-assign": "4.1.1", "postcss-flexbugs-fixes": "3.2.0", "postcss-loader": "2.0.6", "promise": "8.0.1", "react-dev-utils": "^4.1.0", "style-loader": "0.18.2", "sw-precache-webpack-plugin": "0.11.4", "url-loader": "0.5.9", "webpack": "3.5.1", "webpack-dev-server": "2.8.2", "webpack-manifest-plugin": "1.2.1", "whatwg-fetch": "2.0.3" >, "description": "Configuration and scripts for Create React App.", "devDependencies": < "react": "^15.5.4", "react-dom": "^15.5.4" >, "directories": <>, "dist": < "integrity": "sha512-+p0q2N2WW7L4WW6uObqN7fYwSQZ9fBI0StpMYl1Ukoz/lCbemf+yW6b8refyhTsGy62GAqxlpyEfVcTE3hJAxg==", "shasum": "70fe76c9beb67b136b953e875bdfe4ad78d410d1", "tarball": "https://registry.npmjs.org/react-scripts/-/react-scripts-1.0.14.tgz" >, "engines": < "node": ">=6" >, "files": [ "bin", "config", "scripts", "template", "utils" ], "homepage": "https://github.com/facebookincubator/create-react-app#readme", "license": "MIT", "maintainers": [ < "name": "timer", "email": "timer150@gmail.com" >, < "name": "fb", "email": "opensource+npm@fb.com" >, < "name": "gaearon", "email": "dan.abramov@gmail.com" >], "name": "react-scripts", "optionalDependencies": < "fsevents": "1.1.2" >, "readme": "ERROR: No README data found!", "repository": < "type": "git", "url": "git+https://github.com/facebookincubator/create-react-app.git" >, "version": "1.0.14" > 

Update I 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 not look like Jenkins job should be stuck due to this. However, we are still trying to find a way to get rid of this warning because it is not relevant to our OS.

Читайте также:  Scp linux указание порта

Источник

Unsupported platform for fsevents@2.3.2 installation issue

I’m not super familiar with that what/why of the whole fsevents/chokidar packages, but it seems like it’s needed for my MacOS after what I’ve been reading and I’d really appreciate some ideas for resolving this.

enter image description here

current package.json

< "name": "my-app", "version": "0.1.0", "private": true, "scripts": < "dev": "next dev", "build": "next build", "start": "next start", "lint": "eslint .", "lint:fix": "eslint --fix ." >, "husky": < "hooks": < "pre-commit": "lint-staged" >>, "lint-staged": < "src/**/*.": [ "prettier --write", "eslint --fix ." ] >, "dependencies": < "firebase": "^8.2.5", "firebase-admin": "^9.4.2", "firebase-functions": "^3.13.1", "fsevents": "^2.3.2", "js-cookies": "^1.0.4", "next": "10.0.6", "next-pwa": "^5.0.5", "nookies": "^2.5.2", "react": "17.0.1", "react-dom": "17.0.1", "react-redux": "^7.2.2", "redux": "^4.0.5", "redux-thunk": "^2.3.0", "styled-components": "^5.2.1" >, "optionalDependencies": < "fsevents": "^2.3.2" >, "devDependencies": < "@types/node": "^14.14.25", "@types/react": "^17.0.1", "@types/react-redux": "^7.1.16", "@types/styled-components": "^5.1.7", "babel-eslint": "^9.0.0", "eslint": "^6.8.0", "eslint-config-airbnb": "^18.2.1", "eslint-config-nextjs": "^1.0.7", "eslint-config-prettier": "^4.3.0", "eslint-plugin-html": "^5.0.5", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-prettier": "^3.3.1", "eslint-plugin-react": "^7.22.0", "eslint-plugin-react-hooks": "^1.7.0", "husky": "^4.3.8", "lint-staged": "^10.5.3", "prettier": "^1.19.1", "redux-devtools-extension": "^2.13.8", "typescript": "^4.1.3", "webpack": "^5.21.1" >> 

Источник

Unsupported platform for fsevents@2.3.2: wanted (current: ) on github actions

i have created an github action to deploy the code when pushed. it cause this error when installing the packages.

Run npm i --no-optional && cd client && npm i --no-optional && cd .. npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it! npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for fsevents@2.3.2: wanted (current: ) 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! A complete log of this run can be found in: 

i know the issue is with the fsevents. it is not supported on linux. but i installed the package. it is not available in my package.json

 "devDependencies": < "@babel/cli": "^7.12.1", "@babel/core": "^7.14.0", "@babel/node": "^7.13.13", "@babel/plugin-transform-runtime": "^7.13.15", "@babel/preset-env": "^7.14.1", "@types/react-router-dom": "^5.1.7", "@types/styled-components": "^5.1.10", "antd": "^4.16.2", "cross-env": "^7.0.3", "eslint": "^7.25.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^3.4.0", "eslint-plugin-react": "^7.24.0", "morgan": "^1.10.0", "nodemon": "^2.0.7", "prettier": "^2.2.1", "react-awesome-reveal": "^3.8.1", "react-i18next": "^11.10.0", "styled-components": "^5.3.0" >, "dependencies": < "@babel/register": "^7.13.16", "@babel/runtime": "^7.14.0", "bcrypt": "^5.0.1", "cookie-parser": "^1.4.5", "cors": "^2.8.5", "debug": "^4.3.1", "dotenv": "^9.0.0", "express": "^4.17.1", "express-async-handler": "^1.1.4", "joi": "^17.4.0", "joi-password-complexity": "^5.1.0", "jsonwebtoken": "^8.5.1", "mongoose": "^5.12.7", "object-hash": "^2.1.1", "passport": "^0.4.1", "passport-jwt": "^4.0.0", "passport-local": "^1.0.0", "react-autosuggest": "^10.1.0", "validator": "^13.6.0" >

i tried adding no-optional argument while npm i. and adding fsevent to optional dependencies. still causing same error.

Читайте также:  What is package installation in linux

Источник

Оцените статью
Adblock
detector