-
Notifications
You must be signed in to change notification settings - Fork 729
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
dependency problem; unable to get test environment working #184
Comments
I'm not sure if this is the best approach, but based on what I found here, I just updated the relevant section in the yarn.lock file to 5.1.3. So change this:
To this:
And try the yarn install command again and it should work. Basically it appears the har-validator package was tagged under the wrong version. What I don't know is if I was supposed to update both of those versions, or just the top one. It would be nice to get some confirmation here. |
thanks for the prompt response. modifying the version does indeed seem to allow yarn to install dependencies correctly. However, I'm now wondering if the test script is working as expected. For example does not run the tests for "color-functions". It looks to me as if the scripts/test/index.sh should contain |
Hmm, I don't think you need to cd into the exercises directory. Did you try npm test color-functions from the base directory? Do you get an error when trying to run it? |
Yes, the behavior is the same from the base directory. It appears to me the problem is the positional parameter in the script, i.e.
npm test junk color-functions
works OK as does modifying test/scripts/index.sh to contain:
./node_modules/.bin/jest --no-cache --watch $1
… On Jan 8, 2019, at 11:03 AM, Nick Wilson ***@***.***> wrote:
Hmm, I don't think you need to cd into the exercises directory. Did you try npm test color-functions from the base directory? Do you get an error when trying to run it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#184 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AA4CBnvF4YnxwtB9Lta_oGx08XA63vqJks5vBN1kgaJpZM4ZyIMd>.
|
Weird, I totally see what you mean, but mine works just fine with:
Even though my index.sh is:
I tried:
And that still works too. |
I just updated the lock file, with an upgrade to node-sass. Before yarn why har-validator
=> Found "[email protected]"
info Reasons this module exists
- "node-sass#request" depends on it
- Hoisted from "node-sass#request#har-validator" After yarn why har-validator
=> Found "[email protected]"
info Reasons this module exists
- "node-sass#request" depends on it
- Hoisted from "node-sass#request#har-validator" |
## [1.0.3](v1.0.2...v1.0.3) (2019-01-08) ### Bug Fixes * upgrade node-sass ([aeba7b5](aeba7b5)), closes [#184](#184)
🎉 This issue has been resolved in version 1.0.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
System Information
Chrome 71.0.3578.98
MacOS 10.13.06
10.7.0
Describe the bug
Steps to reproduce the behavior:
yarn install v1.12.3
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.2.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "Unexpected end of data"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Expected behavior
yarn to complete successfully.
Screenshots (optional)
If applicable, add screenshots to help explain your problem.
Additional context (optional)
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: