error Unable to resolve module - while generating debug APK - react-native

error Unable to resolve module /usr/local/lib/node_modules/react-native/node_modules/metro-config/node_modules/metro-runtime/src/modules/empty-module.js

Just by running this in the project directory, it worked for me!
npm i -g react-native-cli

Related

React Native- Expo Something went wrong in downloading and extracting the project files: NPM package not found:

I have started many react native applications with the following code before, but now I am encountering this error (Something went wrong in downloading and extracting the project files: NPM package not found: https://registry.npmjs.org/expo-template-blank/-/expo-template-blank-47.0.19.tgz
Error cloning template: Error: NPM package not found: https://registry.npmjs.org/expo-template-blank/-/expo-template-blank-47.0.19.tgz).
Can anyone figure out why?
Error
Try this
npm uninstall -g expo-cli
and npm start again.

angular-cli keeps throwing Error: Cannot find module 'source-map'

So I installed the angular-cli using npm install #angular-devkit/build-angular but every time I try and use the ng command I get this error: Error: Cannot find module 'source-map'
even trying ng version throws the error. I also trying installing it using npm install angualt-cli but that didnt work either. Anyone know how to fix this issue?
I tried a lot of things and ended up just giving up and running npm install source-map which solved it for me.

Module not found: Error: Can't resolve 'ode_modulesue-loaderlibcomponent-normalizer'

I've recently decided to give vue-cli a go but after I run npm install, running npm run dev gives me the following error.
Module not found: Error: Can't resolve 'D:Projects estapp
ode_modulesue-loaderlibcomponent-normalizer' in 'D:\Projects\testapp\src'
Any ideas?
Thanks
I was able to fix this error by reinstalling previous version.
npm install vue-loader#10.0.0 --save-dev

Getting webpack error "Module not found: Error: Cannot resolve module" in fluxible after re-installing node_modules

I have a fluxible project and I'm getting these errors after I deleted all files in node_modules and reinstalled with npm install -d when I try to run with npm run dev which is node webpack-dev-server.js & PORT=3001 nodemon start.js -e js,jsx. The app was working fine until I reinstalled dependencies.
Here's the fluxible template project
https://github.com/yahoo/generator-fluxible
What is causing these errors and how can I diagnose? Why did it work initially and then stopped working when I reinstalled node modules?
ERROR in ./client.js
Module not found: Error: Cannot resolve module 'node_modules/webpack/buildin/module.js' in /Projects/myproject
# ./client.js 1:0-49
ERROR in ./app.js
Module not found: Error: Cannot resolve module 'node_modules/webpack/buildin/module.js' in /Projects/myproject
# ./app.js 1:0-49
https://github.com/hapijs/qs/issues/128
I think it is a know issue. You can always go back to a previous version.

bower install bootstrap - error

I am trying to use bower to install bootstrap. I am getting an error and have no idea what it means.
Error: ENOTDIR, mkdir '/var/folders/f2/b3mwhtgd5bqgbk51jpf9z_zh0000gn/T/thomasjanszen/bower'
at Error (native)
Any help is appreciated?
cd to path where you installed npm and bower at first time,try to run the command again,worked for me!