IIssNan's Notes

Quick notes


  • 首页

  • 归档

  • 标签

  • 搜索

Check npm packages version

发表于 2014-05-10 | | 阅读次数

查看包的版本信息

1
npm view <package-name> version

view命令也可以查看其他的包属性,例如:

1
2
3
4
5
6
7
8
// 查看包的依赖
npm view <package-name> dependencies
// 查看包的源码仓库地址
npm view <package-name> repository.url
// 贡献者E-mail地址
npm view <package-name> contributes.email

System-wide proxy on windows7

发表于 2014-05-09 | | 阅读次数

在Windows7上做全局代理,需要两个步骤:

  1. 在IE的选项中设置proxy的信息
  2. 在命令行中使用netsh来设置全局走代理

netsh设置的命令为:

1
2
3
4
5
6
7
netsh winhttp import proxy source=ie
# 查看proxy设定
netsh winhttp show proxy
# 重置proxy设定
netsh winhttp reset proxy

List installed npm packages

发表于 2014-05-07 | | 阅读次数

使用npm list列出已安装的模块,指定depth=0过滤掉子依赖模块。
适用-g选项来查看安装在全局的模块:

1
2
3
4
npm list --depth=0
//列出安装在全局的模块
npm list -g --depth=0

Hello World

发表于 2014-05-06 | | 阅读次数

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in trobuleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

唔,问乃一时之耻,不问乃一生之耻

村上春树 —— 海边的卡夫卡

1…171819…37
IIssNan

IIssNan

胡编一通,乱写一气

183 日志
6 分类
111 标签
RSS
GitHub Twitter 豆瓣 知乎
© 2011 - 2017 IIssNan
由 Hexo 强力驱动
主题 - NexT.Pisces
0%