Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UNMET PEER DEPENDENCY [email protected]

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?

like image 582
Keon Kim Avatar asked Nov 08 '22 17:11

Keon Kim


1 Answers

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",
    …
}
like image 95
white_gecko Avatar answered Dec 08 '22 09:12

white_gecko