question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'C:\Users\USER\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js

See original GitHub issue

Immediately after updating node i got an error of npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node@8.16.1 preinstall: node installArchSpecificPackage npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node@8.16.1 preinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\USER\AppData\Roaming\npm-cache_logs\2019-09-25T17_14_47_778Z-debug.log

Someone on stackover flow suggested to me to remove the folder of Node_module…now I’m getting two errors module not found and that i posted above

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:34

github_iconTop GitHub Comments

27reactions
lucashdpcommented, Feb 21, 2020

Hey guys,

npm install -g expo-cli --force

Works for me.

7reactions
Wixi105commented, Nov 20, 2019

I found the solution just run it in your user folder because it does not respond when you ran it in a different directory other than maybe C:\Users\User_Name

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
In this article, I'm going to show you how to fix the error. Why the "Error: cannot find module" Occurs. This error occurs...
Read more >
internal/modules/cjs/loader.js 584 throw err; ==> cannot find ...
I had a similar issue with something not being able to find module 'node' , with a similar stack trace as everyone else...
Read more >
Error: Cannot find module in JavaScript [SOLVED]
We can solve Error: Cannot find module by installing the missing module. We can use npm tool to install the mising module.
Read more >
How to resolve "Cannot find module" error in Node - Sabe.io
Learn how to resolve the "Cannot find module" error in Node. ... internal/modules/cjs/loader.js:796 throw err; ^ Error: Cannot find module ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found