M
M
Maxim Ivanov2016-09-15 02:56:34
Command line
Maxim Ivanov, 2016-09-15 02:56:34

Why can't I install babel-core?

Before that, everything worked, apparently I accidentally installed some kind of loader for webpack, now it doesn’t compile at all, it says that babel-core is missing

$ webpack
Hash: 4a899c6ceaf0b57ebc50
Version: webpack 1.13.1
Time: 79ms
    + 2 hidden modules

ERROR in Cannot find module 'babel-core'

ERROR in Cannot find module 'babel-core'

Tried reinstalling babel (removing all folders from node_modules), but still writes strange things:
$ sudo npm install babel-install babel-loader babel-core babel-preset-es2015 --save-dev

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN enoent ENOENT: no such file or directory, open '/home/splincode/package.json'
npm WARN [email protected] requires a peer of [email protected]^0.5.0 but none was installed.
npm WARN splincode No description
npm WARN splincode No repository field.
npm WARN splincode No README data
npm WARN splincode No license field.
npm ERR! Linux 4.2.0-35-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "babel-install" "babel-loader" "babel-core" "babel-preset-es2015" "--save-dev"
npm ERR! node v6.2.2
npm ERR! npm  v3.9.5
npm ERR! path /home/splincode/node_modules/babel-core
npm ERR! code ENOTEMPTY
npm ERR! errno -39
npm ERR! syscall rename

npm ERR! ENOTEMPTY: directory not empty, rename '/home/splincode/node_modules/babel-core' -> '/home/splincode/node_modules/.babel-core.DELETE'
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question