Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

spm 2, 3 共存方案

chencheng (云谦) edited this page May 22, 2014 · 17 revisions

背景

由于 2 和 3 将会共存一段时间,而直接通过 $ npm install spm@ninja 安装 3 会覆盖原来的 2,所以这里提供一个方案,在不影响 2 使用的基础上安装 3 。

安装脚本

git clone https://github.com/spmjs/spm ~/.spm3

cd ~/.spm3
cnpm install
ln -sf `pwd`/bin/spm /usr/local/bin/spm3

至此,spm -V 应该是 2,spm3 -V 应该是 3 。