cocosCreator 2.1.0 命令行 build 加载 packages 失败

命令行 .\CocosCreator.exe --path ~~~ --build "platform=wechatgame;~~~“

2.0.4 构建过程中是会加载 packages 插件的内容的。
2.1.0 构建过程中没有相关加载信息,而是抛出了下列错误。

  • Creator 版本:2.1.0

  • 目标平台:

  • 详细报错信息,包含调用堆栈:
    [20896] timeline loaded
    Failed to update data: update_out is null or out_len is 0init QuickCompiler: 3400.015ms
    [20896] Error: SyntaxError: Unexpected token p in JSON at position 0
    at JSON.parse ()
    at EventEmitter._getOptionsFromCommand (C:\CocosCreator\2.1.0\resources\app.asar\editor\lib\builder\index.js:1:1706)
    at EventEmitter.buildCommand (C:\CocosCreator\2.1.0\resources\app.asar\editor\lib\builder\index.js:1:3516)
    at string.Editor._buildCommand.Promise (C:\CocosCreator\2.1.0\resources\app.asar\editor\index.js:1:1377)
    at Promise ()
    at Object.exports.startup (C:\CocosCreator\2.1.0\resources\app.asar\editor\index.js:1:1342)
    at
    at process._tickDomainCallback (internal/process/next_tick.js:135:7)
    at EventEmitter._getOptionsFromCommand (C:\CocosCreator\2.1.0\resources\app.asar\editor\lib\builder\index.js:1:1761)
    at EventEmitter.buildCommand (C:\CocosCreator\2.1.0\resources\app.asar\editor\lib\builder\index.js:1:3516)
    at string.Editor._buildCommand.Promise (C:\CocosCreator\2.1.0\resources\app.asar\editor\index.js:1:1377)
    at Promise ()
    at Object.exports.startup (C:\CocosCreator\2.1.0\resources\app.asar\editor\index.js:1:1342)
    at
    at process._tickDomainCallback (internal/process/next_tick.js:135:7)
    Start to build platform [wechatgame]

  • 重现方式:命令行 .\CocosCreator.exe --path ~~~ --build "platform=wechatgame;~~~“ 构建对应项目。

  • 之前哪个版本是正常的 :2.0.4

  • 手机型号 :

  • 手机浏览器 :

  • 编辑器操作系统 :win10

  • 编辑器之前是否有其它报错 :

  • 出现概率:100%

  • 额外线索:

这个bug将会在2.0.7修复

啊?那2.1.0 呢?

会同步修复的

现在有办法解决吗

为什么我这个2.0.9不论是苹果还是window 都有?

[20664] Error: SyntaxError: Unexpected token p in JSON at position 0
at JSON.parse ()
at EventEmitter._getOptionsFromCommand (D:\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:1706)
at EventEmitter.buildCommand (D:\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:3824)
at string.Editor._buildCommand.Promise (D:\CocosCreator\resources\app.asar\editor\index.js:1:1620)
at Promise ()
at Object.exports.startup (D:\CocosCreator\resources\app.asar\editor\index.js:1:1585)
at
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
at EventEmitter._getOptionsFromCommand (D:\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:1761)
at EventEmitter.buildCommand (D:\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:3824)
at string.Editor._buildCommand.Promise (D:\CocosCreator\resources\app.asar\editor\index.js:1:1620)
at Promise ()
at Object.exports.startup (D:\CocosCreator\resources\app.asar\editor\index.js:1:1585)
at
at process._tickDomainCallback (internal/process/next_tick.js:135:7)