React Native Container is not working
Enter the following into your terminal in the order below
Node version up
rm -rf /usr/lib/node_modules
rm -rf /usr/bin/node
rm -rf /usr/include/node
rm -rf /usr/local/bin/node
rm -rf /usr/local/include/node
rm -rf /usr/share/man/man1/node*
rm -rf /usr/local/lib/node_modules/
rm -rf /usr/local/bin/npm
rm -rf ~/.npm
rm -rf ~/.node-gyp
apt remove nodejs -y
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
Refresh Terminal

Refresh the terminal by pressing the Refresh button next to the terminal.
Edit package.json file
{{insert PORT number here}} with the value of the external port corresponding to the internal port 19000 in the top menu [Container] - [Port Forwarding Configuration].
Install node_modules
Run with React Native command

Press the Run(project) button in the top right corner.
Last updated
Was this helpful?