Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always npm error when i execute "npm run lint" #246

Closed
webjohnjiang opened this issue Sep 7, 2016 · 2 comments
Closed

always npm error when i execute "npm run lint" #246

webjohnjiang opened this issue Sep 7, 2016 · 2 comments

Comments

@webjohnjiang
Copy link

webjohnjiang commented Sep 7, 2016

when i type "npm run lint", then lint result is ok, but at the end always show the npm Errors errors were link this:

/Users/xxxx/account/src/vuex/getters.js
  2:20  error  Extra semicolon  semi

/Users/xxxxx/account/src/vuex/store.js
  6:2  error  More than 1 blank line not allowed  no-multiple-empty-lines

✖ 45 problems (45 errors, 0 warnings)


npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "lint"
npm ERR! node v4.5.0
npm ERR! npm  v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! account@1.0.0 lint: `eslint --ext .js,.vue src test/unit/specs test/e2e/specs`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the account@1.0.0 lint script 'eslint --ext .js,.vue src test/unit/specs test/e2e/specs'.
npm ERR! This is most likely a problem with the account package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     eslint --ext .js,.vue src test/unit/specs test/e2e/specs
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs account
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls account
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/cuiyongjian/Code/tencent/account/npm-debug.log

it does not effect the eslint result, but it disturbing...

===========以下是中文翻译========
你好,我用webpack脚手架创建的项目,在执行npm run lint进行代码检测的时候,总是在最后出现npm报错。
这个报错并不影响上面显示的lint错误,但是一大串的报错很令人心烦,请问是bug吗?

@LinusBorg
Copy link
Contributor

LinusBorg commented Sep 7, 2016

Use -s to supress the npm errors. These will always show when the called script (eslint or whatever) exits with a code that is not 0

npm run lint -s

@webjohnjiang
Copy link
Author

that's ok, thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants