I was trying to install babel and babel presets. But I seem to encountered a critical error that prevents me from installation.
I typed in 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 [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
└─┬ [email protected]
└── [email protected]
npm WARN optional Skipping failed optional dependency /babel/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN [email protected] requires a peer of babel-core@^6.0.0 but none was installed.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! code 1
what seems to be the problem?
I additionally had to add a dependency for jspm
in order for the babel-loader to be correctly installed.
…
"dependencies": {
"babel-loader": "^6.2.7",
"jspm": "^0.16.48",
…
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With