怎樣在命令行中使用包node
$ npm install moment # module must be installed locally $ node --require moment # -r/--require var moment = require('moment'); moment().format(); 複製代碼