Update npm with nvm for windows

Rename npm.cmd to npm1.cmd and then deleted other npm files: npm, npx.cmd, npx. Then I ran npm1 install -g npm

Pay attention, v8.40+ of npm not working with windows

EC2 Mac

# On your laptop, connect to the Mac instance with SSH (similar to Linux instances)
ssh -i ec2-user@

# On the Mac

# Set a password for ec2-user

sudo passwd ec2-user

# Enable VNC Server (thanks for the feedback and tests)

sudo /System/Library/CoreServices/RemoteManagement/ \
-activate -configure -access -on \
-configure -allowAccessFor -specifiedUsers \
-configure -users ec2-user \
-configure -restart -agent -privs -all

sudo /System/Library/CoreServices/RemoteManagement/ \
-configure -access -on -privs -all -users ec2-user


# On your laptop
# Create a SSH tunnel to VNC and connect from a vnc client using user ec2-user and the password you defined.

ssh -L 5900:localhost:5900 -C -N -i ec2-user@

# open another terminal

open vnc://localhost

# On the mac, resize the APFS container to match EBS volume size

PDISK=$(diskutil list physical external | head -n1 | cut -d” ” -f1)
APFSCONT=$(diskutil list physical external | grep “Apple_APFS” | tr -s ” ” | cut -d” ” -f8)
sudo diskutil repairDisk $PDISK
# Accept the prompt with “y”, then paste this command
sudo diskutil apfs resizeContainer $APFSCONT 0

Linux check occupied space in folder

hidden files
sudo du -sch /home/ec2-user/.[!.]* |sort -h

all files except hidden
sudo du -sch /home/ec2-user/* |sort -h

View all npm global packages installed

npm list -g --depth 0

How to add your repo branch to npm proj

npm i –save github:frank10gm/react-native-material-textfield#bugfix/proptypes-deprecation