Created
April 1, 2021 00:13
-
-
Save TristanOrta/798dbdbf1a1de75d2723f246f1b7daf0 to your computer and use it in GitHub Desktop.
Error in node.js internal/modules/cjs/loader.js:883
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal/modules/cjs/loader.js:883 | |
throw err; | |
^ | |
Error: Cannot find module 'C:\Users\oscar\Desktop\node\03- bases node\helpers\app.js' | |
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15) | |
at Function.Module._load (internal/modules/cjs/loader.js:725:27) | |
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) | |
at internal/main/run_main_module.js:17:47 { | |
code: 'MODULE_NOT_FOUND', | |
requireStack: [] | |
} | |
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
Solution one: | |
check that it is in the path of your app.js and execute from that address | |
path of my app.js file: | |
Users \ mipc \ Desktop \ node \ | |
run: | |
node app.js | |
Solution two: | |
(from linux or look for its equivalent in windows) | |
rm -rf node_modules | |
npm install | |
Solution three: | |
run npm update or | |
Delete the node_modules directory | |
Delete the package-lock.json file | |
Run npm install | |
Run npm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in spanish
revisa que este en la ruta de tu app.js y ejecuta desde esa direccion
opcion uno:
ruta de mi archivo app.js :
Users\mipc\Desktop\node
ejecutar:
node app.js
opcion dos:
(desde linux o buscar su equivalente en windows)
rm -rf node_modules
npm install
opcion tres:
ejecutar npm update o
Delete the node_modules directory
Delete the package-lock.json file
Run npm install
Run npm start