Médi-Rémi Hashim
562a2b2948
Remove -s
flag from read
.
...
Using `stty -echo` for hiding user input means that you can omit the
`-s` flag from `read`.
2014-12-02 20:21:35 +00:00
medimatrix
ad4faa1fd2
Use tput instead of clear. Closes #196
...
Thanks to @sameoldmadness for the help!
2014-12-02 18:18:01 +00:00
Joshua Appelman
caa1169b68
Display help in addition to an error when there are no installed versions.
...
Fixes #188
2014-07-21 22:06:32 +02:00
Joshua Appelman
9c2e6b8b6f
Add double quotes around ${@}, otherwise it's just like $* and breaks on
...
spaces.
See: https://github.com/koalaman/shellcheck/wiki/SC2068
2014-07-06 05:16:31 +02:00
Travis Webb
3c486acc64
Update n
2014-06-29 22:17:21 -04:00
Travis Webb
ed6fbabdb7
Merge pull request #178 from yorkie/patch-1
...
fix #177 , add a lock file for n
2014-06-29 04:22:17 -04:00
Yazhong Liu
562f9ecb5f
fix #177 , add a lock file for n
2014-06-29 14:49:19 +08:00
HE Shi-Jun
ef5305542d
Avoid copy README/LICENSE/Changelog to /user/local
2014-06-11 03:35:59 +08:00
Travis Webb
69c16e4eeb
Merge pull request #126 from hstkk/which
...
Replace last which command with command -v
2014-06-04 15:09:36 -04:00
Darren DeRidder
bba5246146
Remove debug echo
2014-05-22 01:36:07 -04:00
Darren DeRidder
db7ef2d479
Update help message.
2014-05-21 13:42:31 -04:00
Darren DeRidder
5a2f5446f6
Use environment variable N_MIRROR to set download mirror.
2014-05-21 13:40:11 -04:00
Darren DeRidder
2f26f4b5a3
More permissive regex for mirror url.
2014-05-21 11:51:47 -04:00
Darren DeRidder
86f332f3dc
Add comments for the update.
2014-05-20 19:43:14 -04:00
Darren DeRidder
8422830538
Update help message with mirror option
2014-05-20 19:41:22 -04:00
Darren DeRidder
58a9d64cac
Add option to specify a mirror repo.
2014-05-20 19:38:36 -04:00
TJ Holowaychuk
a880cff47d
Release 1.2.1
2014-01-31 07:53:58 -08:00
TJ Holowaychuk
22ab70291b
fix version
2014-01-31 07:53:11 -08:00
Medi-Remi Hashim
a661ee1f4e
Make n use bash
...
On some systems, the default shell is not bash. This commit fixes issue #106
2014-01-30 16:38:36 +00:00
Yazhong Liu
caa3f0e8b4
handle Permission denied
for mkdir
2014-01-03 10:46:36 +08:00
jerome@work
5709d36d03
remove unused config
2013-07-12 12:25:31 +02:00
TJ Holowaychuk
1679122c12
Release 1.1.0
2013-07-10 09:22:14 -07:00
jerome@work
23c15341d4
interactive listing sort fixed
2013-07-10 18:05:18 +02:00
TJ Holowaychuk
3ea021043f
Merge pull request #137 from jeromedecoster/no-installed-version
...
abort gracefully if no installed version
2013-07-09 10:46:38 -07:00
TJ Holowaychuk
76de515de5
Merge pull request #138 from jeromedecoster/resolve-version-with-one-dot
...
resolve version with one dot
2013-07-09 10:44:19 -07:00
jerome@work
c41dfd94dd
resolve version with one dot
2013-07-09 19:13:38 +02:00
jerome@work
7192c3fd12
abort gracefully if no installed version
2013-07-09 18:15:34 +02:00
TJ Holowaychuk
ef91436f81
Merge pull request #135 from jeromedecoster/remove-version-fix
...
remove version fix, not working as expected
2013-07-09 09:02:00 -07:00
TJ Holowaychuk
1f621299bd
Merge pull request #136 from jeromedecoster/prev-fix
...
n prev fix
2013-07-09 09:00:32 -07:00
jerome@work
d2ac79afaa
n prev fix
2013-07-09 17:40:58 +02:00
jerome@work
00d82dbfcc
remove version fix
2013-07-09 17:27:17 +02:00
jerome@work
028f5b03a8
removed unused arguments
2013-07-09 17:11:38 +02:00
hstkk
89fda526c2
Optimize activate
2013-07-07 17:30:29 +03:00
hstkk
ca629e9f5f
Replace last which command with command -v
2013-06-28 09:58:58 +03:00
TJ Holowaychuk
6a267d5c69
Merge branch 'master' of github.com:visionmedia/n
2013-06-26 14:04:32 -07:00
TJ Holowaychuk
163a3feda4
changelog
2013-06-26 14:04:29 -07:00
TJ Holowaychuk
efa190459f
Merge pull request #121 from uggedal/master
...
Switch from which to command -v
2013-06-26 14:03:01 -07:00
Daniel Friedman
a4b5a8d901
Use -R when activating. Fixes #118
...
For some reason the old -r flag isn't properly copying the files across, using -R seems to fix this.
2013-06-18 12:15:30 +11:00
Eivind Uggedal
104a44cb73
Switch from which to command -v.
2013-06-18 00:09:46 +02:00
hstkk
0e9af64fa7
Add RPI support, fix visionmedia/n#108
2013-06-16 23:56:12 +03:00
Ben Atkin
7109b84f5d
Release 0.9.3
2013-03-12 12:32:43 -06:00
Ben Atkin
ad33c9784b
use more widely compatible regex for n --stable
2013-03-12 12:26:41 -06:00
Ben Atkin
e122568b82
update version in script to match version in package.json; bump version
2013-03-12 11:05:37 -06:00
Ben Atkin
ce0c2e92fe
Merge branch 'patch-1' of https://github.com/nw/n
2013-01-21 09:11:50 -07:00
Nathan White
12d2156b89
uname lookup broken on ubuntu 12.04
...
I escaped the lookup and works fine for me now. Tested other os and still worked.
2013-01-21 08:47:43 -07:00
Matt Robenolt
0634fde4a5
Prior to 0.8.6 did not include binaries
2013-01-19 19:50:24 -08:00
TJ Holowaychuk
ab9b4c4103
Release 0.9.0
2013-01-19 13:27:56 -08:00
TJ Holowaychuk
f36163efba
add up/down arrows for navigating installed version selection
2013-01-19 13:25:00 -08:00
TJ Holowaychuk
c70e910715
Release 0.8.2
2013-01-18 11:11:05 -08:00
TJ Holowaychuk
684a8bb92e
refactor tarball_url()
2013-01-18 11:04:35 -08:00
TJ Holowaychuk
9100fea4f6
add back support for "v" prefix on install
2013-01-18 10:38:07 -08:00
TJ Holowaychuk
02945efe26
fix version
2013-01-18 10:35:54 -08:00
TJ Holowaychuk
34a81f051f
add n prev
log message
2013-01-18 10:34:42 -08:00
TJ Holowaychuk
fabf52a0bb
add n prev
to revert to previously selected version
2013-01-18 10:32:17 -08:00
TJ Holowaychuk
374b70ecdb
add activation when already installed
2013-01-18 07:48:34 -08:00
TJ Holowaychuk
873e6e6f7b
add activate()
2013-01-18 07:47:21 -08:00
TJ Holowaychuk
662d075f23
Release 0.8.0
2013-01-18 07:44:33 -08:00
TJ Holowaychuk
226781dfbd
rewrite n. Closes #92
2013-01-18 07:40:49 -08:00
TJ Holowaychuk
d36c2b8804
Revert "Use symlinks instead of copying files upon switch."
...
This reverts commit 0895ea3e50
.
2012-10-07 19:24:29 -07:00
Alexander Schepanovski
0895ea3e50
Use symlinks instead of copying files upon switch.
...
Bakward incompatable change - any modules and executables
such as npm, coffee and even n itself are now diffrent
for diffrent node versions. This is probably a good thing anyway.
2012-10-01 01:25:44 +08:00
Aaron Heckmann
17209227b7
fixed; error message when executing with uninstalled version
2012-08-25 09:10:51 -07:00
TJ Holowaychuk
73ee2e7fb0
Release 0.7.3
2012-07-13 14:44:08 -07:00
TJ Holowaychuk
0d5e1eff11
merge
2012-07-13 14:43:10 -07:00
TJ Holowaychuk
b59f1b4526
Release 0.7.2
2012-06-14 10:20:35 -07:00
sreuter
deefa0d783
removed trailing dot on cp command. fixes #48
2012-06-14 17:01:45 +02:00
Darren DeRidder
f9ed28b992
Use cp -fR to preserve npm symlink
2012-05-16 21:44:51 -04:00
TJ Holowaychuk
f404167173
Release 0.7.1
2012-03-14 10:31:38 -07:00
TJ Holowaychuk
80c2e8f025
Changed: copy all bins. Closes #47
2012-03-14 10:30:28 -07:00
Nathan Rajlich
b434d2009a
Add "to" to error message.
2012-02-24 19:52:39 -08:00
TJ Holowaychuk
99b97d4a6e
Release 0.7.0
2012-02-21 19:37:21 -08:00
Tom Gallacher
4646f6594d
Adding stable only option
2012-01-28 15:28:17 +00:00
Tj Holowaychuk
93353630ce
Release 0.6.1
2012-01-26 14:06:42 -08:00
Darren DeRidder
3ed8b07d90
Fix control character sequence for Linux compatability
2012-01-26 12:21:17 -05:00
Darren DeRidder
470d7746b8
Revert "Fix control character sequence for compatability with Linux"
...
This reverts commit cb71c2b2a1
.
2012-01-26 12:19:37 -05:00
Darren DeRidder
cb71c2b2a1
Fix control character sequence for compatability with Linux
2012-01-26 12:03:28 -05:00
Tj Holowaychuk
dd1a93e00b
Fixed log colors (use printf)
2012-01-26 04:41:48 -08:00
Tj Holowaychuk
66e8d0244c
merged
2012-01-26 04:34:07 -08:00
Tj Holowaychuk
f41d075ed0
Release 0.6.0
2012-01-26 04:28:15 -08:00
Tj Holowaychuk
6b2aef528a
make --help descriptions line up
2012-01-26 04:25:04 -08:00
Daniel D. Shaw
fff5db9fad
Refactored and simplified the node install functions.
2012-01-26 04:24:01 -08:00
Daniel D. Shaw
771c0bd6c4
More display_help tuning.
2012-01-26 04:24:01 -08:00
Daniel D. Shaw
988c3f0239
Updated help.
2012-01-26 04:24:01 -08:00
Daniel D. Shaw
6c838cd4d5
Added support for installing node with a tarball.
2012-01-26 04:24:00 -08:00
John Hamelink
824d2154c1
Adding Symlink to currently used version of node so that globally installed modules are accessible from the PATH if the path is extended.
2012-01-20 22:01:51 +00:00
Yevgeniy Viktorov
a8c9d629fc
wrap npm into certain node version
2012-01-04 19:57:49 +02:00
Tj Holowaychuk
8d1ec71f4c
swap echo for printf. closes #44
2011-12-08 08:48:38 -08:00
Bo-Yi Wu
e44f849dcc
Add execute npm arg if node.js version greater than or equal 0.6.3
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2011-11-29 13:04:59 +08:00
TJ Holowaychuk
c5a8d5e636
moar jobs
2011-11-05 12:02:15 -07:00
TJ Holowaychuk
26bea532be
Release 0.5.4
2011-11-05 11:20:30 -07:00
Patrick Pfeiffer
cec7deb93d
fix install >= 0.5.x
2011-11-05 19:10:49 +01:00
TJ Holowaychuk
33bd1cc647
Release 0.5.3
2011-11-04 06:41:31 -07:00
TJ Holowaychuk
80c8a1f050
Fixed issue when prefix/lib/node dir is not present. Closes #37
2011-11-04 06:40:54 -07:00
TJ Holowaychuk
0078f52f66
PREFIX no longer used
2011-11-04 06:36:31 -07:00
TJ Holowaychuk
5b98d66c8c
exec
2011-10-29 10:11:59 -07:00
Drew Wells
aff5c640c1
Merge branch 'master' into patch-1
...
Conflicts:
bin/n
Merged changes incoming with 0.5.2
2011-10-26 19:25:27 -04:00
Tj Holowaychuk
9c9e5529a4
Release 0.5.2
2011-10-14 16:47:47 -07:00
Tj Holowaychuk
236c97dfad
Fixed check_current_version() when node is not present
2011-10-14 16:43:23 -07:00
Tj Holowaychuk
bcdac8d392
Release 0.5.1
2011-10-11 08:56:05 -07:00
Tj Holowaychuk
0ac0914132
Fixed newer 0.5.x versions
...
the patch level commit I accepted messed this up
2011-10-11 08:43:21 -07:00
Patrick Pfeiffer
a2b9819cf9
fix node-waf
2011-10-11 05:44:33 +02:00
rumpl
05c0a93912
node verion 0.5.0 is not in its own folder.
2011-09-20 20:08:21 +02:00
Tj Holowaychuk
9cdd730db0
Release 0.5.0
2011-08-08 16:13:16 -07:00
Tj Holowaychuk
885d05d4d1
Added support for 0.5.x. Closes #30
2011-08-08 16:11:13 -07:00
Drew Wells
4534d90d38
Address issues with installing node locally in home directory.
...
Tested:
n latest (install)
n install 0.5.1
n use 0.5.1
n latest (activate)
n 0.4.10
2011-07-31 19:03:21 -03:00
Nagi Letaifa
4e43b2c36e
Fix #25
2011-07-24 14:55:20 +02:00
Tj Holowaychuk
7e0c059784
Release 0.4.2
2011-06-28 10:51:51 -07:00
Darren DeRidder
a84e2bfabe
Tested on OSX, modified for compatability
2011-06-27 02:22:58 -04:00
Darren DeRidder
c006e9ed3f
Fall back to /usr/local
2011-06-24 13:11:53 -04:00
Darren DeRidder
1bf60a04f5
Let n play nice on Ubuntu with local node install.
...
* Fix stdin / stderr redirect to work with sh
* Fix cd relative path issue
* Try to find node and n before defaulting to /usr/local/
* (can still set PREFIX, N_PREFIX env vars to override)
* Canadian content eh
2011-06-21 16:33:20 -04:00
Tj Holowaychuk
bcc764dc14
Release 0.4.1
2011-03-13 10:10:16 -07:00
Alexander Simmerl
79bbbd8c99
fix bad substitution errors on ubuntu
2011-03-13 10:09:32 -07:00
Tj Holowaychuk
0d75b916b6
Release 0.4.0
2011-02-14 09:02:47 -08:00
Dav Glass
0e04afb0f7
Added --no-check-certificate for Github Downloads
2011-02-14 08:59:51 -08:00
Dav Glass
1ea222ab4d
Moved abort and log up, so they are defined before calling
2011-02-14 08:59:33 -08:00
Tj Holowaychuk
9d5f3bc459
misc refactor
2011-02-14 08:55:06 -08:00
Dav Glass
a28fa9d340
Added markers to installed and current versions
2011-02-14 08:53:32 -08:00
Tj Holowaychuk
325997f5ef
indentation
2011-02-07 15:55:40 -08:00
Dav Glass
e9043b7f88
Added version dir check, if the mkdir fails abort with an error
2011-02-07 15:55:27 -08:00
Tj Holowaychuk
3028c839be
Added --help info for n ls|list
2011-02-07 15:53:17 -08:00
Tj Holowaychuk
b890a96024
Added n ls|list
to show versions available
2011-02-07 15:51:32 -08:00
Tj Holowaychuk
6c952abcd1
Improved error message when tar fails (usually due to invalid version number) [davglass]
2011-01-22 23:52:06 -08:00
Tj Holowaychuk
b8ba0b2d1c
Release 0.3.0
2011-01-21 16:56:02 -08:00
Tj Holowaychuk
ea037bfc50
Fixed wafadmin issue, installing lib/node/*. Closes #7
2011-01-21 16:55:16 -08:00
Tj Holowaychuk
1927720473
Added n latest
2011-01-21 15:25:07 -08:00
Tj Holowaychuk
a92ff56ebb
Added n --latest
2011-01-21 15:22:46 -08:00
Tj Holowaychuk
d5622a5499
Release 0.2.2
2011-01-21 13:01:34 -08:00
Tj Holowaychuk
7c9c9b662e
Fixed escape
2011-01-21 13:01:13 -08:00
Tj Holowaychuk
77cf454c44
Release 0.2.1
2011-01-21 12:52:59 -08:00
Tj Holowaychuk
6c494fec0c
Installing node-waf. Closes #5
2011-01-21 12:52:32 -08:00
Tj Holowaychuk
cc0e877c8b
misc refactoring
2011-01-21 08:26:36 -08:00
Tj Holowaychuk
489458d29a
Release 0.2.0
2011-01-20 19:37:38 -08:00
Tj Holowaychuk
4ddb8b0a7d
Better docs
2011-01-20 19:35:00 -08:00
Tj Holowaychuk
c9708d2831
Added displaying of config options when using n
2011-01-20 19:30:40 -08:00
Tj Holowaychuk
bc9526f2c6
Storing install config to $dir/.config
2011-01-20 19:26:43 -08:00
Tj Holowaychuk
9eb7ddd4fe
Changed; n <version>
ignores non-n installations
2011-01-20 19:12:02 -08:00
Tj Holowaychuk
f2a2457f5a
Release 0.1.2
2011-01-20 18:29:19 -08:00
Tj Holowaychuk
6ae40cd138
Added help
alias of --help
2011-01-20 18:26:38 -08:00
Tj Holowaychuk
6905c29b73
Fixed bash specific substitutions. Closes #1
2011-01-20 18:26:03 -08:00
Tj Holowaychuk
28700f9bd2
Release 0.1.1
2011-01-13 18:25:25 -08:00
Tj Holowaychuk
c544c2dff3
Added is not installed msg on use
2011-01-09 19:37:00 -08:00
Tj Holowaychuk
f2447a3b5a
refactored substitutions
2011-01-08 16:46:38 -08:00
Tj Holowaychuk
72f2304439
misc
2011-01-08 16:25:06 -08:00
Tj Holowaychuk
84306382d1
Release 0.1.0
2011-01-05 13:44:17 -08:00
Tj Holowaychuk
19651680b0
more refactoring
2011-01-05 13:42:00 -08:00
Tj Holowaychuk
c5af23f6ed
more refactoring
2011-01-05 13:40:38 -08:00
Tj Holowaychuk
546de80e09
misc refactoring
2011-01-05 13:38:46 -08:00
Tj Holowaychuk
0ce4694c27
Added n as <version> [args ...]
2011-01-05 13:33:28 -08:00
Tj Holowaychuk
81432ba7b4
Release 0.0.4
2011-01-05 09:14:41 -08:00
Tj Holowaychuk
131a064707
Added which
alias of bin
2011-01-05 09:14:16 -08:00
Tj Holowaychuk
c3faf5f02e
Release 0.0.3
2011-01-05 08:43:42 -08:00
Tj Holowaychuk
0a31d25dbb
Added n bin <version>
command
2011-01-05 08:43:16 -08:00
Tj Holowaychuk
85e2fbd710
Release 0.0.2
2011-01-05 08:23:32 -08:00
Tj Holowaychuk
e2ce5084e6
Added - alias of rm
2011-01-05 08:23:02 -08:00
Tj Holowaychuk
acea331b67
red error
2011-01-05 08:20:40 -08:00
Tj Holowaychuk
c7244d4439
Added n rm
support
2011-01-05 08:17:16 -08:00
Tj Holowaychuk
2919626f4f
docs
2011-01-05 08:03:50 -08:00
Tj Holowaychuk
800d128d01
docs
2011-01-05 07:55:56 -08:00
Tj Holowaychuk
dfc3c0ea56
Added config flag support
2011-01-05 07:54:50 -08:00
Tj Holowaychuk
c41e3b1300
Using PREFIX
2011-01-05 07:44:55 -08:00
Tj Holowaychuk
38187f856c
PREFIX -> N_PREFIX
2011-01-05 07:41:36 -08:00
Tj Holowaychuk
0fa203814c
Activating install
2011-01-05 07:40:17 -08:00
Tj Holowaychuk
0161070687
return when active
2011-01-05 07:25:55 -08:00
Tj Holowaychuk
7dccb39ea3
Added check_current_version
2011-01-05 07:24:18 -08:00
Tj Holowaychuk
cea6c1153f
refactored version display
2011-01-05 07:20:59 -08:00
Tj Holowaychuk
f1be3e1dc6
Displaying installed versions
2011-01-05 07:12:58 -08:00
Tj Holowaychuk
3d10d311d6
Added N_PREFIX support
2011-01-05 07:08:46 -08:00
Tj Holowaychuk
cb5e54be89
typos
2011-01-05 06:57:04 -08:00
Tj Holowaychuk
a76cc384dc
Install to $PREFIX/$version
2011-01-05 06:52:07 -08:00
Tj Holowaychuk
1abb735bb1
Added cleanup()
2011-01-05 06:51:14 -08:00
Tj Holowaychuk
0594bb0e13
Added display_current_version()
2011-01-05 06:35:53 -08:00
Tj Holowaychuk
ed8f539d58
typo
2011-01-05 06:29:52 -08:00
Tj Holowaychuk
3017360ba7
installing
2011-01-05 06:29:39 -08:00
Tj Holowaychuk
d3ac35d2f2
abort
2011-01-05 06:03:31 -08:00
Tj Holowaychuk
1667a31d61
Started n(1)
2011-01-05 06:02:02 -08:00
Tj Holowaychuk
73896ff4a6
Initial commit
2011-01-05 05:50:12 -08:00