Techies Adsense

Tuesday, 23 August 2016

Error: Cannot find module (configstore os-name object-assign)

I received the Error: Cannot find module 'configstore' during the android/IOS plateform setup on Developer Machine.

  • Error: Cannot find module 'os-name'
  • Error: Cannot find module 'configstore'
  • Error: Cannot find module 'object-assign'


Detailed Error: 

C:\Users\test>cordova create hello com.example.hello HelloWorldmodule.js:327    throw err;    ^Error: Cannot find module 'os-name'    at Function.Module._resolveFilename (module.js:325:15)    at Function.Module._load (module.js:276:25)    at Module.require (module.js:353:17)    at require (internal/module.js:12:17)    at Object.<anonymous> (C:\Users\testuser\AppData\Roaming\npm\node_modules\cordova\node_modules\insight\lib\index.js:4:14)    at Module._compile (module.js:409:26)    at Object.Module._extensions..js (module.js:416:10)    at Module.load (module.js:343:32)    at Function.Module._load (module.js:300:12)    at Module.require (module.js:353:17)


1 Solutions:

npm install os-name npm install configstore npm install object-assign

Example Output: 

`-- configstore@2.0.0                                                                                                             +-- dot-prop@2.4.0                                                                                                                ..........................   


Thanks for the kind visit.

No comments: