curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
nodejs -v
sudo npm install -g express-generator
開始一個檔案夾中的web項目:
1、express -e blog
2、cd blog && npm install
3、DEBUG=blog node ./bin/www(啟動語句)
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
nodejs -v
sudo npm install -g express-generator
開始一個檔案夾中的web項目:
1、express -e blog
2、cd blog && npm install
3、DEBUG=blog node ./bin/www(啟動語句)