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

Chapter: Getting started with exercises #2

Open
rauschma opened this issue Jun 26, 2018 · 13 comments
Open

Chapter: Getting started with exercises #2

rauschma opened this issue Jun 26, 2018 · 13 comments

Comments

@rauschma
Copy link
Owner

No description provided.

@rauschma rauschma changed the title Chapter: About the exercises and quizzes Chapter: Getting started with exercises and quizzes Aug 8, 2018
@rauschma rauschma changed the title Chapter: Getting started with exercises and quizzes Chapter: Getting started with quizzes and exercises Aug 15, 2018
@Ngugi1
Copy link

Ngugi1 commented Aug 16, 2018

Small typo:

Page 77,
Getting Started With Quizzes and Exercises,
First Paragraph, Last Sentence, Last word should read: them not theem

Repository owner deleted a comment Mar 23, 2019
Repository owner deleted a comment Mar 23, 2019
@rauschma
Copy link
Owner Author

@Ngugi1 Thanks, fixed now!

@matt-wiese
Copy link

Hey @rauschma
I'm encountering an error when trying to use/configure AVA in Atom and I'm reaching out here as AVA is referencing your package.json in ./impatient-js-code 2020-06-23;


@ test C:\Users\c-matt.wiese\Google Drive\JS\impatient-js-code 2020-06-23
ava --verbose --match "!*#bonus" "installation_test.mjs"

× Enhancement compilation must be configured in AVA’s Babel options.
npm ERR! Test failed. See above for more details.


I've used npm to install esm, babel, http-server, and isisomorphic-fetch. Please help!

@rauschma
Copy link
Owner Author

rauschma commented Dec 17, 2020

@matt-wiese: It does work if you run npm t from a terminal app, right?

Alas, my knowledge of AVA is limited. It looks like you are running an older version – IIRC, enhancement compilation was something that older versions did/required: avajs/ava#2376

If that’s not it, you may have to ask the AVA team.

@matt-wiese
Copy link

@matt-wiese: It does work if you run npm t from a terminal app, right?

Alas, my knowledge of AVA is limited. It looks like you are running an older version – IIRC, enhancement compilation was something that older versions did/required: avajs/ava#2376

If that’s not it, you may have to ask the AVA team.

yep that's what I tried running as well. And FWIW I am on Win10 so I'm using Atom for a terminal app. Node JS is installed, ran through the simple ava install available from their repo. I am using AVA v3.14

@rauschma
Copy link
Owner Author

@matt-wiese: What happens if you do the following in a normal terminal:

  • Download the exercises
  • Install AVA locally via npm install inside the unpacked directory with the exercises
  • Invoke npm t for an exercise

Does that work or not?

@matt-wiese
Copy link

@matt-wiese: What happens if you do the following in a normal terminal:

  • Download the exercises
  • Install AVA locally via npm install inside the unpacked directory with the exercises
  • Invoke npm t for an exercise

Does that work or not?

I performed these steps exactly and it seems each .mjs had an uncaught exception or error thrown in test

@rauschma
Copy link
Owner Author

I performed these steps exactly and it seems each .mjs had an uncaught exception or error thrown in test

That is expected (as long as it’s: “missing module” and “comparison failed”) – the exercises are about making these exceptions go away.

The one test that should succeed, is:

npm t installation_test.mjs

@BehdadEs
Copy link

Hey @rauschma,
I wanted to test exercise files and followed the instructions in README but when I try to test the codes with installation_test.mjs I get this message:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'assert' imported from D:\JS\exercies\installation_test.mjs at packageResolve (internal/modules/esm/resolve.js:655:9) at moduleResolve (internal/modules/esm/resolve.js:696:18) at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:810:11) at Loader.resolve (internal/modules/esm/loader.js:86:40) at Loader.getModuleJob (internal/modules/esm/loader.js:230:28) at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:56:40) at link (internal/modules/esm/module_job.js:55:36) npm ERR! Test failed. See above for more details.

@rauschma
Copy link
Owner Author

@BehdadEs:

  • This is the ES2020 edition, right?
  • npm install went well, I take it?
  • What’s the output if you run node -v

@BehdadEs
Copy link

BehdadEs commented Feb 28, 2021

@rauschma
No, I'm learning fron ES2021 edition
npm install went well with no issue I think
npm install output:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 125 packages from 83 contributors and audited 126 packages in 2.527s

18 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

node -v outpu: 6.14.11

@rauschma
Copy link
Owner Author

node -v output: 6.14.11

OK, that’s the problem:

  • You need a version of node that’s at least 15.5.1 (see README.txt)
  • You can download an installer here: https://nodejs.org/

@BehdadEs
Copy link

node -v output: 6.14.11

OK, that’s the problem:

  • You need a version of node that’s at least 15.5.1 (see README.txt)
  • You can download an installer here: https://nodejs.org/

It worked!
I was using TLS version and didn't pay attention to the version number .
Thanks

@rauschma rauschma changed the title Chapter: Getting started with quizzes and exercises Chapter: Getting started with exercises Jun 17, 2024
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

4 participants