During tns build android, we are getting the following errors where no package.json files are in the node_modules/.bin file of all dependencies of my dependencies.
The error I'm receiving is:
Validating before-prepareJSApp arguments.
{ Error: ENOENT: no such file or directory, open 'C:\Users\bbl\Desktop\Brian\Development\instructor-app\platforms\android\app\src\main\assets\app\tns_modules\nativescript-plugin-firebase\node_modules\nativescript-hook\node_modules\.bin\package.json'
at Object.openSync (fs.js:436:3)
at Object.readFileSync (fs.js:341:35)
at FileSystem.readFile (C:\Users\bbl\AppData\Roaming\npm\node_modules\nativescript\lib\common\file-system.js:171:19)
at FileSystem.readText (C:\Users\bbl\AppData\Roaming\npm\node_modules\nativescript\lib\common\file-system.js:181:21)
at FileSystem.readJson (C:\Users\bbl\AppData\Roaming\npm\node_modules\nativescript\lib\common\file-system.js:184:27)
at PluginsService.isNativeScriptPlugin (C:\Users\bbl\AppData\Roaming\npm\node_modules\nativescript\lib\services\plugins-service.js:189:51)
at dependencies.forEach.d (C:\Users\bbl\AppData\Roaming\npm\node_modules\nativescript\lib\tools\node-modules\node-modules-dest-copy.js:50:42)
at Array.forEach (<anonymous>)
at TnsModulesCopy.removeDependenciesPlatformsDirs (C:\Users\bbl\AppData\Roaming\npm\node_modules\nativescript\lib\tools\node-modules\node-modules-dest-copy.js:47:18)
at dependencies.forEach.d (C:\Users\bbl\AppData\Roaming\npm\node_modules\nativescript\lib\tools\node-modules\node-modules-dest-copy.js:53:22)
at Array.forEach (<anonymous>)
at TnsModulesCopy.removeDependenciesPlatformsDirs (C:\Users\bbl\AppData\Roaming\npm\node_modules\nativescript\lib\tools\node-modules\node-modules-dest-copy.js:47:18)
at TnsModulesCopy.copyDependencyDir (C:\Users\bbl\AppData\Roaming\npm\node_modules\nativescript\lib\tools\node-modules\node-modules-dest-copy.js:37:18)
at TnsModulesCopy.copyModules (C:\Users\bbl\AppData\Roaming\npm\node_modules\nativescript\lib\tools\node-modules\node-modules-dest-copy.js:25:18)
at NodeModulesBuilder.initialPrepareNodeModules (C:\Users\bbl\AppData\Roaming\npm\node_modules\nativescript\lib\tools\node-modules\node-modules-builder.js:48:24)
at NodeModulesBuilder.intialPrepareNodeModulesIfRequired (C:\Users\bbl\AppData\Roaming\npm\node_modules\nativescript\lib\tools\node-modules\node-modules-builder.js:36:18)
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path:
'C:\\Users\\bbl\\Desktop\\Brian\\Development\\instructor-app\\platforms\\android\\app\\src\\main\\assets\\app\\tns_modules\\nativescript-plugin-firebase\\node_modules\\nativescript-hook\\node_modules\\.bin\\package.json' }
Processing node_modules failed. Error: ENOENT: no such file or directory, open 'C:\Users\bbl\Desktop\Brian\Development\instructor-app\platforms\android\app\src\main\assets\app\tns_modules\nativescript-plugin-firebase\node_modules\nativescript-hook\node_modules\.bin\package.json'
I've tried cleaning npm cache, tns platform remove android and closing CS Code while npm installing. I'm running out of options.
OS: Windows 10 NPM version: 6.4.1 Node version: 10.15.3
During tns build android, we are getting the following errors where no package.json files are in the node_modules/.bin file of all dependencies of my dependencies.
The error I'm receiving is:
I've tried cleaning npm cache, tns platform remove android and closing CS Code while npm installing. I'm running out of options.
OS: Windows 10 NPM version: 6.4.1 Node version: 10.15.3
My package.json:
I have absolutely no idea what is going on and have been trying different things now.