npm使用
先去node.js安裝
https://nodejs.org/en/
安裝完後去命令提示字元按順序檢查
Test It!
node -v
To see if Node is installed, type the above on your command line.
npm -v
To see if npm is installed, type the above on your command line.
Installing dist
npm install dist
To add this npm package to your local machine, type the above into your command line. You’ll notice a node_modules directory appear in your root where the package is now installed.
If you're having trouble installing packages, check out the helpful docs for installing npm packages locally
檢查完出現安裝問題再依序下面指示安裝元件
npm install -g express
npm install -d
npm install -g npm@lts
即安裝成功
安裝jade(改名為pug)
https://www.npmjs.com/package/pug
先去node.js安裝
https://nodejs.org/en/
安裝完後去命令提示字元按順序檢查
Test It!
node -v
To see if Node is installed, type the above on your command line.
npm -v
To see if npm is installed, type the above on your command line.
Installing dist
npm install dist
To add this npm package to your local machine, type the above into your command line. You’ll notice a node_modules directory appear in your root where the package is now installed.
If you're having trouble installing packages, check out the helpful docs for installing npm packages locally
檢查完出現安裝問題再依序下面指示安裝元件
npm install -g express
npm install -d
npm install -g npm@lts
即安裝成功
安裝jade(改名為pug)
https://www.npmjs.com/package/pug