Help please, when installing babel gives this error

npm WARN optional Skipping failed optional dependency / babel / chokidar / fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.9

I understand "fsevents" to refer to the OS X architecture, I cannot install this npm package since I have linux mint.

When you run the most babel produces this:

fs.js:584 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ Error: EACCES: permission denied, open '/home/medonomator/.babel.json' at Error (native) at Object.fs.openSync (fs.js:584:18) at Object.fs.writeFileSync (fs.js:1224:33) at save (/home/medonomator/.nvm/versions/node/v5.9.1/lib/node_modules/babel/node_modules/babel-core/lib/api/register/cache.js:35:19) at _combinedTickCallback (node.js:376:9) at process._tickDomainCallback (node.js:431:11) at Function.Module.runMain (module.js:449:11) at startup (node.js:142:18) at node.js:939:3 

    1 answer 1

    First, what you think is a mistake , namely:

    npm WARN optional Skipping failed optional dependency / babel / chokidar / fsevents:
    npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.9

    is not an error . These are just warnings that npm cannot set an optional dependency.

    Secondly, your problem is not related to this package at all. To you, the node does not make any sense that it has no authority to open a file:

    Error: EACCES: permission denied, open '/home/medonomator/.babel.json'