NPM 自动管理包依赖

简介

包依赖的实例 可以时刻保持 模块是最新的js版本

code

{
    "name":"d3-project-template",
    "version":"0.1.0",
    "description":"Ready to go d3 data visualization project template",
    "keywords":[
        "data visualization",
        "d3"
    ],
    "homepage":"<project home page>",
    "author":{
        "name":"lee",
        "url":"none"
    },
    "repository":{
        "type":"git",
        "url":"<source repo url>"
    },
    "dependencies":{
        "d3":"3.x"
    },
    "devDependencies":{
        "uglify-js":"2.x"
    }
}

命令

npm install

Hope is a good thing,maybe the best of things,and no good thing ever dies.----------- Andy Dufresne
原文地址:https://www.cnblogs.com/eat-too-much/p/12603827.html