摘要: package.json Git urls can be of the form: The commit-ish can be any tag, sha, or branch which can be supplied as an argument to git checkout. The defa 阅读全文
posted @ 2017-04-01 14:11 jay- 阅读(1848) 评论(0) 推荐(0) 编辑
摘要: 1.使用代理npm 安装某个module https_proxy=http://代理地址 npm install module 2.设置configure npmrc Files The four relevant files are: per-project configuration file 阅读全文
posted @ 2017-04-01 13:46 jay- 阅读(3130) 评论(0) 推荐(0) 编辑
摘要: npm v2中安装依赖都是树状的层级关系,而v3则是平级关系 如果c模块中同样需要b模块,但是与a中b模块不是同个版本,则这时就采用的树状结构,层层嵌套 使用 tree -d node_modules 查看树状结构 删除依赖: 原因是b V1.0已经是一个顶级的依赖,我们不能装B V2.0作为一个顶 阅读全文
posted @ 2017-04-01 10:09 jay- 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 依赖hell 相反,试图解决模块B到一个单一版本的,NPM使模块B的两个版本到树,需要它的模块嵌套在每个版本。 使用npm ls可以看到使用它们之间的关系 使用npm ls --depth=0 查看其他模块对一个模块的依赖, npm ls mode-a 阅读全文
posted @ 2017-04-01 10:02 jay- 阅读(160) 评论(0) 推荐(0) 编辑