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

Error Installing async-validator #1545

Closed
sebasalvarado opened this issue May 27, 2018 · 1 comment
Closed

Error Installing async-validator #1545

sebasalvarado opened this issue May 27, 2018 · 1 comment

Comments

@sebasalvarado
Copy link

System and Versions:

  • OS: Mac OSX High Sierra
node -v
v8.11.1
npm -v
5.6.0

Problem:

After cloning the project and trying npm install I got the following error:

npm ERR! fetch failed https://registry.npmjs.org/async-validator/-/async-validator-1.8.2.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 404`

After researching this problem online I found this way to fix it: https://stackoverflow.com/questions/50540965/npm-err-404-not-found-async-validator-while-installing-element-ui/50541278

I had to npm install https://github.com/yiminghe/async-validator/archive/1.8.2.tar.gz and that added it as a dependency to my package.json. Afer doing that step, I was able to succesfully run npm install. I'm not sure which package depends on async-validator but that is not allowing me run the project. After I installed it separately I tried npm start and this is what I'm getting now:

Failed to compile.

./node_modules/async-validator/index.js
Module parse failed: Unexpected token (1:20)
You may need an appropriate loader to handle this file type.
| export default from './src/';|

I think is a webpack or babel issue that I'm not sure how to fix. Can we fix the link for async-validator so that my npm install works?

@sebasalvarado sebasalvarado changed the title Installing async-validator Error Installing async-validator May 27, 2018
@afc163
Copy link
Member

afc163 commented May 27, 2018

@afc163 afc163 closed this as completed May 27, 2018
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