Code Monkey home page Code Monkey logo

Comments (2)

qgy18 avatar qgy18 commented on July 21, 2024

2.1 升级到 babel6 了,需要做一些修改。具体可以看这里:

https://thinkjs.org/zh-cn/doc/2.1/upgrade.html#toc-cc6

from firekylin.

jiangtao avatar jiangtao commented on July 21, 2024

master分支上 运行gulp还是会出错。 目前暂时使用2.0分支进行学习
**备注:**已配置.babelrc,下载对应的plugins
版本信息:
node: v5.5.0
npm: 3.6.0
gulp-babel: [email protected]
错误如下:

[18:57:31] Requiring external module babel-core/register
/Users/jiangtao/Places/Code/Github_Code/development/imjiangtao.com/firekylin/node_modules/babel-core/lib/transformation/file/options/option-manager.js:327
          throw new Error("Couldn't find preset " + JSON.stringify(val) + " relative to directory " + JSON.stringify(dirname));
          ^

Error: Couldn't find preset "es2015" relative to directory "/Users/jiangtao/Places/Code/Github_Code/development/imjiangtao.com/firekylin"
    at OptionManager.mergePresets (/Users/jiangtao/Places/Code/Github_Code/development/imjiangtao.com/firekylin/node_modules/babel-core/lib/transformation/file/options/option-manager.js:327:17)
    at OptionManager.mergeOptions (/Users/jiangtao/Places/Code/Github_Code/development/imjiangtao.com/firekylin/node_modules/babel-core/lib/transformation/file/options/option-manager.js:287:12)
    at OptionManager.addConfig (/Users/jiangtao/Places/Code/Github_Code/development/imjiangtao.com/firekylin/node_modules/babel-core/lib/transformation/file/options/option-manager.js:221:10)
    at OptionManager.findConfigs (/Users/jiangtao/Places/Code/Github_Code/development/imjiangtao.com/firekylin/node_modules/babel-core/lib/transformation/file/options/option-manager.js:364:16)
    at OptionManager.init (/Users/jiangtao/Places/Code/Github_Code/development/imjiangtao.com/firekylin/node_modules/babel-core/lib/transformation/file/options/option-manager.js:412:12)
    at compile (/Users/jiangtao/Places/Code/Github_Code/development/imjiangtao.com/firekylin/node_modules/babel-register/lib/node.js:87:26)
    at loader (/Users/jiangtao/Places/Code/Github_Code/development/imjiangtao.com/firekylin/node_modules/babel-register/lib/node.js:130:14)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/jiangtao/Places/Code/Github_Code/development/imjiangtao.com/firekylin/node_modules/babel-register/lib/node.js:140:7)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)

from firekylin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.