خرید بک لینک

Vote count: 0

Trying to run jsHint via script. package.json

{
  "name": "projectName",
  "version": "0.1.0",
  "devDependencies": {
    "jshint": "^2.9.1"
  },
  "scripts": {
    "lint": "jshint src"
  }
}

And get the following error:

npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lint"
npm ERR! node v4.2.4
npm ERR! npm  v2.14.12
npm ERR! code ELIFECYCLE
npm ERR! projectName@0.1.0 lint: `jshint src`
npm ERR! Exit status 2

asked 2 mins ago

1 Answer

Vote count: 0

I resolved this adding "|| true" to the lint line of the script. See below:

{
  "name": "projectName",
  "version": "0.1.0",
  "devDependencies": {
    "jshint": "^2.9.1"
  },
  "scripts": {
    "lint": "jshint src || true"
  }
}

answered 57 secs ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 10 اسفند 1394 ساعت: 4:03

صفحه بندی