UNEPT PEER DEPENDENCY babel-core@5.8.38

I tried to install Babel and Babel presets. But I seem to have encountered a critical error that is stopping me from installing.

I typed the following command:

npm install --save-dev babel-core babel-loader babel-preset-es2015 babel-preset-stage-0 babel-preset-react 

but it rejects me with the following error message:

  └─┬ UNMET PEER DEPENDENCY babel-core@5.8.38 └─┬ regenerator@0.8.40 β”œβ”€β”¬ defs@1.1.1 β”‚ └── esprima-fb@15001.1001.0-dev-harmony-fb β”œβ”€β”€ esprima-fb@15001.1001.0-dev-harmony-fb └─┬ recast@0.10.33 └── esprima-fb@15001.1001.0-dev-harmony-fb 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 npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.9 npm WARN babel-loader@6.2.4 requires a peer of babel-core@ ^6.0.0 but none was installed. npm WARN graphql_demo@1.0.0 No repository field. npm WARN graphql_demo@1.0.0 No license field. npm ERR! code 1 

What is the problem?

+5
source share
1 answer

In addition, I had to add a dependency for jspm to properly install the bootloader.

 … "dependencies": { "babel-loader": "^6.2.7", "jspm": "^0.16.48", … } 
+1
source

Source: https://habr.com/ru/post/1245752/


All Articles