1. 程式人生 > >怎樣檢視 nodejs 安裝包的版本資訊?

怎樣檢視 nodejs 安裝包的版本資訊?

檢視當前路徑的安裝包:

npm list

檢視全域性的安裝包:

npm list -g

檢視某個安裝包:

$ npm list grunt
[email protected] /path/to/project/folder
└── [email protected]

或者:

$ npm list | grep grunt
└── [email protected]