Node.js
NPM 常用命令
· ☕ 1 分钟
** 默认执行命名时,针对的是当前目录环境。如果加上 -g 参数,则表示针对的是全局生效。** npm 升级 1 npm install npm -g 查看当前版本 1 npm -v 查看 npm 源配置 1 npm config get registry 修改 npm 源 1 2 npm config set registry http://registry.npm.taobao.org/ # npm config set registry https://registry.npmjs.org/ 临时指定 npm 安装源 1 npm install [package name] --registry=https://registry.npm.taobao.org 设置 proxy 1 npm config set proxy http://proxy.example.com:8080 查看 proxy 1 npm config get proxy 删除

Ghost源码分析(一): 目录结构
· ☕ 1 分钟
Ghost版本:“version”: “0.9.0-beta.2” |— content 内容目录 | |— apps 目录,暂时为空,以后可能Ghost上能直接部署app | |— data 数据库文件夹 | |— images 图片文件夹 | |— themes Ghost主题文件夹 |— core 核心模块目录 | |— client 客户端代码文件夹 | |— server 服务