Cannot find module 'asap/raw'

  • A+

i have start a new react-native project and after that i install react-native-maps i can't do react-native run-android because the terminal show me

module.js:550     throw err;     ^  Error: Cannot find module 'asap/raw'     at Function.Module._resolveFilename (module.js:548:15)     at Function.Module._load (module.js:475:25)     at Module.require (module.js:597:17)     at require (internal/module.js:11:18)     at Object.<anonymous> (/home/valentino/Scrivania/lolo/node_modules/promise/lib/core.js:3:12)     at Module._compile (module.js:653:30)     at Module._compile (/home/valentino/Scrivania/lolo/node_modules/pirates/lib/index.js:83:24)     at Module._extensions..js (module.js:664:10)     at Object.newLoader [as .js] (/home/valentino/Scrivania/lolo/node_modules/pirates/lib/index.js:88:7)     at Module.load (module.js:566:32) 

Show this message just if i install react-native-maps, this is the command with i have build the project:

react-native init appName cd appName npm install react-native-maps --save react-native run-android 

How I can resolve this problem?

Am I doing something wrong?

Thanks for the help.


Running npm install in your project directory usually works.

(What it does is that it installs all the dependencies in the local node_modules folder that may have been downloaded when you installed that one package.)


:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: