Yarn: Yarn, Travis-CI ๋ฐ Node 0.12.0: SyntaxError: ์—„๊ฒฉ ๋ชจ๋“œ์—์„œ const ์‚ฌ์šฉ.

์— ๋งŒ๋“  2016๋…„ 10์›” 20์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: yarnpkg/yarn

Travis-CI์™€ ํ•จ๊ป˜ Yarn์„ ์‚ฌ์šฉํ•˜๊ณ  ์‹ถ์ง€๋งŒ Node 0.12.0 ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

/usr/share/yarn/lib-legacy/constants.js:7
const userHome = require('user-home');
^^^^^
SyntaxError: Use of const in strict mode.
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/share/yarn/bin/yarn.js:9:17)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)

ํŠธ๋ž˜๋น„์Šค-CI ๊ตฌ์„ฑ:

sudo: true
language: node_js

node_js:
  - "0.12"
  - iojs
  - "4"
  - "6"
  - "stable"

before_install:
  # https://yarnpkg.com/en/docs/install_ci
  - curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
  - sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
  - echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  - sudo apt-get update -qq
  - sudo apt-get install -y -qq yarn
cache:
  directories:
  - $HOME/.yarn-cache

install: "yarn"

script: "yarn run travis"

after_success:
  - yarn run test:coveralls
  - rm -rf ./coverage

Travis-CI ๋กœ๊ทธ:
https://travis-ci.org/sanex3339/javascript-obfuscator/jobs/169163143

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

Yarn์€ ์ด ๋…ผ๋ฆฌ bin/yarn.js#L24-L33 ์— ๋”ฐ๋ผ ๋…ธ๋“œ 4+์—์„œ๋งŒ ์ง€์›๋ฉ๋‹ˆ๋‹ค.

๋ชจ๋“  3 ๋Œ“๊ธ€

Yarn์€ ์ด ๋…ผ๋ฆฌ bin/yarn.js#L24-L33 ์— ๋”ฐ๋ผ ๋…ธ๋“œ 4+์—์„œ๋งŒ ์ง€์›๋ฉ๋‹ˆ๋‹ค.

๊ทธ๋ ‡๋‹ค๋ฉด ๋งค์šฐ ๋‚˜์˜๋‹ค.

4+ ์ง€๊ธˆ๋งŒ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ž˜๋„ ๋ฌธ์ œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰