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

npm run lint之后很多错误 #490

Closed
addedjacky opened this issue Aug 10, 2017 · 3 comments
Closed

npm run lint之后很多错误 #490

addedjacky opened this issue Aug 10, 2017 · 3 comments

Comments

@addedjacky
Copy link

[版本问题?更新最新的git库了。

✖ 2411 problems (2411 errors, 0 warnings)

npm ERR! Darwin 15.5.0
npm ERR! argv "/Users/xxx/.nvm/versions/node/v6.9.0/bin/node" "/Users/xxx/.nvm/versions/node/v6.9.0/bin/npm" "run" "lint"
npm ERR! node v6.9.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! antd-admin@4.3.2 lint: eslint --fix --ext .js src
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the antd-admin@4.3.2 lint script 'eslint --fix --ext .js src'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the antd-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! eslint --fix --ext .js src
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs antd-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls antd-admin
npm ERR! There is likely additional logging output above.

@addedjacky
Copy link
Author

切换最新版本 8.3.0
✖ 2411 problems (2411 errors, 0 warnings)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! antd-admin@4.3.2 lint: eslint --fix --ext .js src
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the antd-admin@4.3.2 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@zuiidea
Copy link
Owner

zuiidea commented Aug 10, 2017

我知道了,
因为这个原因,我把public目录移动到src文件夹里去,public下的文件,lint时应该忽略
sorrycc/roadhog#341

@zuiidea
Copy link
Owner

zuiidea commented Aug 10, 2017

Fix:d26a92c
最好忽略CRLF/LF

git config --global core.autocrlf false

@zuiidea zuiidea closed this as completed Aug 10, 2017
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