05 - Using a `package.json` | npm Documentation
December 28, 2015 at 05:12PM http://ift.tt/22vM5ly

seen from Malaysia
seen from Malaysia
seen from China
seen from Türkiye

seen from Vietnam
seen from United States

seen from Czechia

seen from France

seen from United Kingdom

seen from Malaysia

seen from Czechia

seen from United States
seen from Sweden
seen from Italy

seen from Italy
seen from China

seen from Italy
seen from Czechia

seen from Malaysia

seen from Italy
05 - Using a `package.json` | npm Documentation
December 28, 2015 at 05:12PM http://ift.tt/22vM5ly
There’s a nice npm module to find newer versions of dependencies than what your package.json has
See https://www.npmjs.com/package/npm-check-updates
Even works with bower.json
Bulk Update NPM Dependencies
Have a `package.json` with a lot of dependencies you’d prefer to update all at once? Check out [npm-check-updates](https://www.npmjs.com/package/npm-check-updates)
```
➜ npm-check-updates -u
```
Validating Package.json
node에서 package.json사용시에 version의 의미..
착각: 작성중인 어플리케이션의 버전을 임의로 적는것..
사실: 사용(호출)하는 npm의 버전
이렇게 추정이 된다.
npm update가 제대로 작동되지 않으면서 발견한 내용
package.json cheatsheet
{
"name": "http-server",
"preferGlobal": "true",
"version": "0.3.0",
"author": "Nodejitsu <[email protected]>",
"description": "a simple zero-configuration command-line http server",
"contributors": [
{
"name": "Marak Squires",
"email": "[email protected]"
}
],
"bin": {
"http-server": "./bin/http-server"
},
"scripts": {
"start": "node ./bin/http-server",
"test": "vows --spec --isolate",
"predeploy": "echo This will be run before deploying the app",
"postdeploy": "echo This will be run after deploying the app"
},
"main": "./lib/http-server",
"repository": {
"type": "git",
"url": "https://github.com/nodejitsu/http-server.git"
},
"keywords": [
"cli",
"http",
"server"
],
"dependencies" : {
"colors" : "*",
"flatiron" : "0.1.x",
"optimist" : "0.2.x",
"union" : "0.1.x",
"ecstatic" : "0.1.x",
"plates" : "https://github.com/flatiron/plates/tarball/master"
},
"analyze": false,
"devDependencies": {
"vows" : "0.5.x",
"request" : "2.1.x"
},
"bundleDependencies": [
"union",
"ecstatic"
],
"license": "MIT",
"engines": {
"node": ">=0.6"
}
}