Error: Couldn't find preset "env" relative to directory
来源:互联网 发布:高德导航软件 编辑:程序博客网 时间:2024/05/29 09:20
这是因为.babelrc文件里的配置
["env", { "modules": false, "targets": { "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] } }],
这里配置的env需要babel-preset-env这个模块
执行
cnpm i babel-preset-env --save-dev
阅读全文
1 0
- Error: Couldn't find preset "env" relative to directory
- Couldn't find preset “es2015” relative to directory
- nodejs 运行后报错 Error: Couldn't find preset "es2015" relative to directory
- weex学习笔记-Couldn't find preset "es2015" relative to directory
- vue使用vue-ueditor碰到的问题(Couldn't find preset "es2015" relative to directory)
- react-native 运行github项目报错 Couldn't find preset “es2015” relative to directory
- webpack 编译报错 Couldn't find preset "env"
- vue,bug-Couldn’t find preset "es2015"
- USB error: couldn’t opendir(): No such file or directory
- Linux ERROR 2002 (HY000): Can't connect to local MySQL server through socket和 Couldn't find MySQL se
- Can't find temporary directory:internal error
- iOS开发 -- Couldn't find default.styleproto in framework Error
- Starting MySQL ERROR! Couldn't find MySQL manager or server
- E/dalvikvm( 2456): ERROR: couldn't find native method
- 解决“ERROR: couldn't find native method”方法
- SVN: error can't find temporary directory:Internal error
- Subversion Error: Can't find a temporary directory: Internal error
- babel && babel-preset-env
- HDU1863(畅通工程)
- 关于IDEA-maven环境下如何使用log4j
- 17 多校 3
- CT之cnn
- 【POJ 3414】Pots(BFS)
- Error: Couldn't find preset "env" relative to directory
- 字符串
- 数组的应用
- POJ 3468 A Simple Problem with Integers (树状数组) (区间修改+区间查询)
- Python学习笔记(2)——Functions
- 暑假第四天总结
- js 其他对象
- 二级指针做输入的3种模型-2
- MFC 单文档应用程序如何为状态栏添加进度条