Error: Couldn't find preset “es2015” relative to directory “/Users/username”

前端 未结 12 1497
孤城傲影
孤城傲影 2020-12-13 16:59

I get the following error when trying to use gulp-babel:

Error: Couldn\'t find preset \"es2015\" relative to directory \"/Users/username\"

12条回答
  •  生来不讨喜
    2020-12-13 17:36

    My problem was that other program was using a file involved in the compilation process (probably the .babelrc). Closing several apps solved my problem.

    For me was Dropbox or even Brackets Editor with eqFTP extension.

    Greetings

提交回复
热议问题