Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-05-10 21:15:50 +0400
committerisaacs <i@izs.me>2010-05-10 21:38:00 +0400
commit743d3872399defb7877abcc77e49bfd1a6b268e5 (patch)
tree4a3da30a69bcb92b0b77f7ebbe3f25e0736140b3 /Makefile
parent2cdd515425ac070fbc9d3b8568c8ad9c9ab71a7d (diff)
Improve install process.
Remove the install-npm.js. Add install-stable, install, and link Make commands. The default is still to do install-stable.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index eaf4be05a..92c1c9b66 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,18 @@ docs = $(shell ls doc/*.md \
|sed 's|doc/|man/|g' \
)
+install-stable:
+ ./cli.js --auto-activate always install npm@stable
+
install:
- @node install-npm.js
+ ./cli.js --auto-activate always install .
+
+link:
+ ./cli.js --auto-activate always link .
+
+uninstall:
+ @echo TODO: have npm uninstall itself.
+ @echo See http://github.com/isaacs/npm/issues/issue/27
man:
@mkdir man
@@ -16,4 +26,4 @@ doc: man $(docs)
man/%.1: doc/%.md
ronn --roff $< > $@
-.PHONY: install doc clean uninstall
+.PHONY: install install-stable link doc clean uninstall