I have struggled with this error for a few hours:
• _READY_
• Script Error: internal/modules/cjs/loader.js:323
• throw err;
• ^
• Error: Cannot find module '/storage/emulated/0/Android/data/com.smartphoneremote.androidscriptfr...
• at tryPackage ( internal/modules/cjs/loader.js:315:19)
• at Function.Module._findPath ( internal/modules/cjs/loader.js:528:18)
• at Function.Module._resolveFilename ( internal/modules/cjs/loader.js:818:27)
• at Function.Module._load ( internal/modules/cjs/loader.js:687:27)
• at Module.require ( internal/modules/cjs/loader.js:903:19)
• at require ( internal/modules/cjs/helpers.js:74:18)
• at /storage/emulated/0/Android/data/com.smartphoneremote.androidscriptfree/files/DroidScript...
• at Script.runInContext ( vm.js:130:18)
the solution that worked for me was to delete the folder node_modules under the project and use the ide.AddModule( "Your_NPM_Library", true ) to reinstall the node library.
Cheers,
WT