Open LREGS opened 4 years ago
@LREGS Did you run npm install
inside the two-fer
directory? Since node modules are installed locally, this has to be done for each exercise. If you are still facing the issue, please open an issue at https://github.com/exercism/javascript/. More people will be able to help you there.
This repo is for the exercism
command line utility itself.
@tejasbubane I have the same problem with npm. jest command not find. There is no two-fer directory or I can't find it.
@mohamedmehdigara the two-fer
folder will be within your $(exercism workspace)/javascript
folder, if you already downloaded the two-fer
exercise.
You might have the error on another exercise though, still the summary will remain roughly the same, you need to run npm install
for each and every exercise you download from within the exercises directory.
@NobbZ I understand what you mean. two-fer is another exercise. I am stuck in the hello world exercise.
Seems as if there is dependency that hasn't been downloaded properly. Deleting the node_modules
folder and then running npm install
again might fix it.
\cc @exercism/javascript perhaps you are a better fit for helping out from now?
@NobbZ Where is the node_modules folder?
@mohamedmehdigara salut 👋🏽
Did you run npm install
inside the hello-world
folder? This must be done from a terminal, such as integrated with vs code, or cmd.exe
. Let us know if "terminal" is unclear, and we can give you a step-by-step guide. It would look something like this:
cd C:\Users\Admin\Exercism\javascript\hello-world
npm install
If you run npm install
, node_modules
will be added to that directory.
For two-fer
, it's the same steps. You would go into the folder using your terminal, and then run npm install
, for example:
cd C:\Users\Admin\Exercism\javascript\two-fer
npm install
@SleeplessByte I did cd C:\Users\Admin\Exercism\javascript\hello-world npm install But still there is no npm modules folder and nothing is added. Same as in the screenshot.
After searching in issues for the hello world exercise, I realize that the producers removed it because it was hard for some programming languages and the learner should do tasks in the track other than the hello world task.
But still there is no npm modules folder and nothing is added. Same as in the screenshot.
Can you give us the output (screenshot is fine) after you do
cd C:\Users\Admin\Exercism\javascript\hello-world
npm install
I get: $ ls -aFC ./ ../ babel.config.js .eslintrc .exercism/ hello-world.js hello-world.spec.js .npmrc package.json README.md ~/exercism/javascript/hello-world$ npm install [..................] / idealTree:hello-world: sill idealTree buildDeps
Its stuck there.
I'm on node v15.10.0
@wonka64 that step can take a few minutes, but it could be that something like a virus scanner is interfering with is. Regardless, I do recommend you try again on node 14. (See https://nodejs.org/en/). Uneven node numbers are never stable.
@wonka64 Try running npm install --loglevel verbose
and see if you find any errors or check where exactly it gets stuck. Does https://registry.npmjs.org/ work for you in the browser?
Confirmed working on node v15.10.0 in a Linux image on a Chromebook - root cause was a networking issue caused by an Android app. Thank you @SleeplessByte & @tejasbubane
When I run npm test the following occurs:
william@Williams-MacBook-Pro two-fer % npm test
sh: jest: command not found npm ERR! Test failed. See above for more details.
Very fresh with this and unsure if my process is even correct. I have followed all the installation guides to the best of my ability.
I am then downloading and opening the tasks in Atom. I am the completing the tasks in the skeleton file and then running npm test in the terminal once in the correct directory.
Troubleshooting Information
Version
Current: 3.0.13 Latest: 3.0.13
Operating System
OS: darwin Architecture: amd64
Configuration
Home: /Users/william Workspace: /Users/william/Exercism Config: /Users/william/.config/exercism API key: da93*****36c
API Reachability
GitHub:
Exercism: