I am on section one, Install and run Jest, and when I did an npm i, certain plugins which were in the package.json which I got from Github, did not install when I ran npm i. Then I installed them separately. However, when I ran npm test after installing a couple of babel related plugins (babel-plugin-emotion,
@babel
/plugin-proposal-object-rest-spread,
@babel
/plugin-proposal-class-properties,
@babel
/[email protected]), I got the following error:
npm test
[email protected] test /Users/mariacam/Development/testing-javascript/configure_jest_for_testing_js_apps/1_install_and_run_jest jest
FAIL src/tests/example.test.js
● Test suite failed to run
Cannot find module 'react-loadable/babel' from '/Users/mariacam/Development/testing-javascript/configure_jest_for_testing_js_apps/1_install_and_run_jest'
And when I tried to install the plugin, I got the following:
npm i react-loadable/babel -D ⏎
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/react-loadable/babel.git
npm ERR!
npm ERR! ERROR: Repository not found.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mariacam/.npm/_logs/2019-06-12T12_21_50_326Z-debug.log
I have no problems communicating with Github, so I don't know why I am getting that part of the error message. I tried to find an answer
to this problem, but no luck so far. I am using Node 11.14.
Note: I think the package.json (July, 2018) has to be updated a bit.