Loving Coding & Visual Design

spmjs运行构建命令出错

npm update以后,运行spm build提示:
spm Deprecated: buildArgs.include is deprecated, using sea, standalone and umd instead.:

构建失败。貌似spm不小心被升级为3的版本。

试着重装spm@2.x
cnpm cache clean 清理缓存
cnpm uninstall spm -g 卸载模块
cnpm uninstall spm@2.x -g 卸载模块

cnpm install spm@2.x -g
cnpm install spm-build@0.x -g

spm build
//////////////
....
Done: without errors.

问题解决。

更多参考:
迁移 spm2 的模块到 spm3
https://github.com/spmjs/spm/wiki/%E8%BF%81%E7%A7%BB-spm2-%E7%9A%84%E6%A8%A1%E5%9D%97%E5%88%B0-spm3



下一页


最 近 文 章

  1. 关于SSL证书 - 2017-05-03T16:40:33.137Z
  2. 关于小朋友和游戏 - 2017-04-09T08:38:25.592Z
  3. 小程序不全面自由开放只有死路一条 - 2017-03-29T14:49:25.034Z
  4. Xcode6.3出错NSString is not implicitly convertible to String - Tue, 14 Apr 2015 14:37:47 +0000
  5. Jquery Ajax Parsererror: Unexpected end of input - Fri, 10 Apr 2015 05:43:22 +0000
  6. To Anyone Wanna Buy My Domains - Mon, 23 Mar 2015 15:41:22 +0000
  7. PHP出错:json_encode: Invalid UTF-8 sequence in argument - Thu, 19 Mar 2015 15:55:52 +0000
  8. spmjs运行构建命令出错 - Fri, 06 Mar 2015 07:35:56 +0000
  9. 再次把博客移回国内 - Thu, 29 Jan 2015 14:25:34 +0000
  10. Virtualbox安装window10的64位预览版错误 - Fri, 26 Dec 2014 04:47:24 +0000