Cordoba cannot find the module

I was already looking for solutions, but could not find anything that works.

I am trying to create / run apk with a corridor, but the emulator (as well as my phone) will not start the application and will not work during installation. I tried to recreate the project and reinstall the cord, but I have this problem:

Error: cannot find module 'C: \ Users \ ... \ AppData \ Roaming \ NPM \ node_modules \ Cordova \ Bin \ Cordova'

I also tried:

npm cache clean

Nothing works, can someone help me? Thank!

+1
source share
1 answer

I came across a similar situation, here is the error information:

module.js:471
    throw err;
    ^

Error: Cannot find module 'C:\Users\MYUSERNAME\AppData\Roaming\npm\node_modules\cordova\bin\cordova'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:504:3

This happened after I updated my cordova with the command:

npm install cordova -g

"cordova", , .

, :

npm uninstall cordova -g

npm install cordova -g
+1

Source: https://habr.com/ru/post/1691716/


All Articles