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

Tests fail with "Cannot find module 'jsesc'" #18

Open
pparkkin opened this issue Jan 18, 2020 · 4 comments
Open

Tests fail with "Cannot find module 'jsesc'" #18

pparkkin opened this issue Jan 18, 2020 · 4 comments

Comments

@pparkkin
Copy link

I get the following error when I run npm test.

$ npm test

> [email protected] test /home/pparkkin/src/local-echo
> jest

 FAIL  lib/Utils.test.js
  ● Test suite failed to run

    Cannot find module 'jsesc'

      at Object.<anonymous> (node_modules/@babel/generator/lib/generators/types.js:25:37)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        1.06s
Ran all test suites.
npm ERR! Test failed.  See above for more details.

I ran npm install first.

Node and npm versions.

$ npm --version
6.13.6
$ node --version
v10.15.2
@janellealag
Copy link

Try running npm audit fix --force

@Lyle-Rogers
Copy link

I barely made a new react native project and with no additional code added I am getting the same error here. Error: Cannot find module 'jsesc'. I can't find anything anywhere about this.

@paolaguedes
Copy link

run npm audit fix --force resolve to me when I see the same error : Error: Cannot find module 'jsesc'. I can't find anything anywhere about this.

@fahad186
Copy link

just install it.
npm i jsesc

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

5 participants