CMD 包管理工具 SPM

码农软件 · 软件分类 · 常用工具包 · 2019-08-14 19:44:41

软件介绍

SPM 是 CMD 的包管理工具,需要和 Sea.js 配合使用。

安装 Node

Node.js 支持 >= 0.10.29, 建议安装 >= 0.12.0

osx, linux 环境

$ git clone git@github.com:creationix/nvm.git ~/.nvm
$ source ~/.nvm/nvm.sh
# 安装
$ nvm install v0.12.0
# 显示当前本地安装的所有 Node.js
$ nvm ls 
# 显示服务器所有可用的 Node.js
$ nvm ls-remote
# 本地可用的 Node.js 中使用 0.12.0
$ nvm use 0.12.0
# 设置每次启动默认版本
$ nvm alias default 0.12.0

window 环境

这里假设大家都使用 d:\git 目录存放 git 项目。

$ d:
$ cd git
$ git clone git@github.com:nanjingboy/nvmw.git
# 设置 d:\git\nvmw 墓道到 PATH 环境变量
$ set "PATH=d:\git\nvmw;%PATH%"
# 安装
$ nvmw install 0.12.0
# 显示当前本地安装的所有 Node.js
$ nvmw ls 
# 显示服务器所有可用的 Node.js
$ nvmw ls-remote
# 本地可用的 Node.js 中使用 0.12.0
$ nvmw use 0.12.0
# 设置每次启动默认版本
$ nvmw switch 0.12.0

node-gyp 编译环境配置 (可选)

https://github.com/TooTallNate/node-gyp#installation

安装 SPM

$ npm i spm -g

如遇因网速原因导致的安装失败,可尝试使用 cnpm 的源加速安装。

$ npm i spm -g -r http://r.cnpmjs.org/

案例项目

本文地址:https://codercto.com/soft/d/12371.html

Basics of Web Design

Basics of Web Design

Terry Felke-Morris / Addison-Wesley / 2013-1-28 / USD 98.40

Basics of Web Design: HTML5 and CSS3, 2e covers the basic concepts that web designers need to develop their skills: * Introductory Internet and Web concepts* Creating web pages with HTML5* Configurin......一起来看看 《Basics of Web Design》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

在线进制转换器
在线进制转换器

各进制数互转换器

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具