RammusXu / rammusxu.github.io

My profile
https://rammusxu.github.io/
2 stars 0 forks source link

NPM note #21

Closed RammusXu closed 7 years ago

RammusXu commented 8 years ago

移除沒有在package.json裡面的node_module

npm prune

如何在project中加入自己開發的library

加入dependency

npm install --save https://github.com/Hangie921/Ping_Library.git

In package.json

// 新增script
"scripts": {
  "updateping": "npm install ../../Ping_Library"
}

下載local端的library

npm run updateping

下載遠端的library

npm install