啱啱想用 VSC 用做下D react project 黎練習下。 但係佢就 彈左 /bin/sh: node: command not found 呢一句出黎。 咁我就上 GOOGLE SEARCH啦,搵到呢個網址 https://tutswiki.com/how-to-fix-sudo-node-command-not-found-error/。我就
copy 左呢一句出黎
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local && ~/node-latest-install && ~/node-latest-install
curl https://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local && make install
curl https://npmjs.org/install.sh | sh
rm -rf ~/node-latest-install
打係 terminal到。而家過左 20分鐘 個terminal 都味行完。我是唔是中左伏呢?