node
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/node package

22.15.0 • Public • Published

node

Installs a node binary into your project, which because npm runs scripts with the local ./node_modules/.bin in the PATH ahead of the system copy means you can have a local version of node that is different than your system's, and manage node as a normal dependency.

Warning: don't install this globally with npm 2. npm@2 immediately removes node, then can't run the scripts that make this work.

Use

npm i node@lts

Use with npx

npx node@4 myscript.js

This will run myscript.js with the latest version of node from the v4 major.

Using the shell auto-fallback of npx, you can even do it like so:

node@4 myscript.js

Thanks

Major thanks to Kat Marchán for late-night problem solving, and to CJ Silverio and Maciej Małecki for egging me on way back when I had the idea to package node up this way. It does turn out if you ask "why not?!" once in a while something fun happens.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
16.20.24,921v16-lts
14.21.34,092v14-lts
18.19.11,920v18-lts
20.11.11,519v20-lts
12.22.121,007v12-lts
10.24.1582v10-lts
8.17.0137v8-lts
4.9.126v4-lts
6.17.122v6-lts
22.15.00latest

Version History

VersionDownloads (Last 7 Days)Published
22.15.00
20.19.117,110
23.11.093,532
18.20.86,952
20.19.08,728
23.10.0897
23.9.01,077
18.20.72,294
23.8.0505
22.14.012,362
20.18.31,249
23.7.0562
18.20.61,797
20.18.21,542
22.13.1828
23.6.1100
22.13.01,010
23.6.0251
23.5.0495
23.4.0135
22.12.03,274
20.18.13,776
23.3.019
18.20.51,535
23.2.070
22.11.01,428
23.1.0179
22.10.0816
23.0.010
20.18.04,414
22.9.01,437
22.8.0699
22.7.0169
20.17.03,169
22.6.0445
20.16.0835
22.5.185
22.5.013
18.20.41,734
20.15.1195
22.4.199
22.4.068
20.15.0289
22.3.0656
20.14.0939
18.20.31,911
22.2.0328
20.13.1378
20.13.049
22.1.088
22.0.0184
18.20.2601
20.12.2669
21.7.34,249
18.20.1173
20.12.1129
21.7.225
18.20.0471
20.12.0126
21.7.1353
21.7.09
21.6.2266
20.11.11,519
18.19.11,920
18.19.099
21.6.1206
21.6.01,049
21.5.09
21.4.09
21.3.09
20.11.0455
21.2.01,133
20.10.02,126
21.1.0549
20.9.01,060
21.0.0298
20.8.1105
20.8.09
18.18.23,613
18.18.111
20.7.0326
20.6.18
18.18.0448
20.6.0150
20.5.12,614
18.17.1202
16.20.24,921
20.5.0675
18.17.01,070
20.4.039
20.3.1764
20.3.011
18.16.1547
16.20.1388
20.2.0562
20.1.0316
20.0.03,493
18.16.0229
16.20.0326
19.8.13,770
19.8.010
18.15.0195
19.6.156
18.14.2605
18.14.122
16.19.1154
14.21.34,092
19.7.014
19.6.088
18.14.079
18.13.0182
19.5.08
19.4.090
14.21.286
16.19.0678
19.3.044
19.2.0159
19.1.052
18.12.11,763
19.0.130
16.18.1244
14.21.035
18.12.074
19.0.027
18.11.040
16.18.0311
18.10.0304
16.17.1412
18.9.133
14.20.117
18.9.01,544
18.8.038
16.17.0157
18.7.028
18.6.019
18.5.051
14.20.0176
16.16.0286
18.4.0367
18.3.010
18.2.011
18.1.011
18.0.0476
17.9.11,346
16.15.1152
16.15.0134
14.19.314
14.19.213
12.22.121,007
17.7.2367
16.14.2648
14.19.1836
12.22.1123
16.14.124
17.7.146
17.7.08
17.6.08
16.14.093
17.5.027
14.19.029
12.22.1014
17.4.066
17.3.115
16.13.25,631
14.18.337
12.22.943
17.3.061
12.22.828
14.18.223
17.2.023
16.13.1568
17.1.0214
16.13.0131
17.0.114
17.0.011
16.12.09
16.11.123
16.11.011
14.18.1192
12.22.7128
14.18.01,278
16.10.0111
16.9.161
16.9.012
16.8.09
16.7.08
16.6.210
14.17.6232
14.17.523
12.22.68
12.22.58
16.6.1478
16.6.027
14.17.4114
12.22.49
16.5.034
16.4.138
14.17.3240
12.22.316
12.22.28
14.17.219
16.4.035
14.17.111
16.3.076
16.1.040
16.0.01,243
15.14.0876
14.16.181
12.22.181
10.24.1582
15.12.083
10.24.073
12.21.014
15.10.020
14.16.041
15.8.022
15.7.011
10.23.210
12.20.19
14.15.265
15.4.0156
12.20.0114
15.3.031
15.2.112
14.15.155
12.19.1181
15.2.09
15.1.08
10.23.018
14.15.0445
15.0.121
15.0.010
14.14.0131
12.19.015
14.13.118
14.13.021
14.12.09
14.11.09
12.18.414
10.22.121
14.10.110
14.10.08
14.9.08
14.8.0108
14.7.013
12.18.3169
14.6.010
10.22.09
12.18.220
14.5.036
12.18.18
14.4.018
12.18.0644
10.21.023
12.17.08
14.3.09
14.2.036
14.1.09
13.14.0275
12.16.345
14.0.018
13.13.016
10.20.120
12.16.28
10.20.08
13.12.051
13.11.09
13.10.18
13.10.08
13.9.015
12.16.1406
12.16.025
13.8.018
12.15.08
10.19.081
13.7.015
10.18.113
13.6.011
12.14.115
13.5.076
13.4.08
12.14.012
10.18.0110
8.17.0137
12.13.111
13.3.022
13.2.08
13.1.022
13.0.111
10.17.0284
13.0.09
12.13.083
12.12.021
8.16.210
12.11.113
12.11.079
12.10.037
12.9.115
12.9.014
12.8.114
8.16.18
10.16.3173
12.8.08
10.16.29
10.16.18
12.7.03,894
12.6.033
12.5.010
12.4.067
10.16.048
12.3.117
12.3.08
12.2.012
11.15.0917
12.1.012
8.16.014
12.0.057
11.14.012
6.17.122
11.13.0208
11.12.015
11.11.09
10.15.331
10.15.212
8.15.120
6.17.09
11.10.028
11.9.09
10.15.115
11.8.010
11.7.09
6.16.08
8.15.010
10.15.019
11.6.015
10.14.210
8.14.18
11.5.017
10.14.110
11.4.08
11.3.013
10.14.012
8.14.09
6.15.19
11.2.010
8.13.09
11.1.014
10.13.025
11.0.029
10.12.017
10.11.012
8.12.076
10.10.044
6.14.49
10.9.025
8.11.412
10.8.063
10.7.010
10.6.010
10.5.010
10.4.19
9.11.284
6.14.313
8.11.311
10.4.010
10.3.020
10.2.013
10.1.08
8.11.211
6.11.58
6.14.210
10.0.021
9.11.061
9.10.113
6.14.18
4.9.126
8.11.111
9.10.09
4.9.08
6.14.09
8.11.08
9.9.09
9.8.012
8.10.026
9.6.19
9.6.08
9.7.08
6.13.011
9.5.020
9.4.011
6.12.39
8.9.454
9.3.014
6.12.28
4.8.78
8.9.28
6.12.19
8.9.18
9.2.08
9.1.09
6.12.09
4.8.68
9.0.010
8.9.013
8.8.18
8.8.09
8.7.09
8.6.08
8.5.0114
8.4.02,183
8.3.038
8.2.110
8.2.08
8.1.48
8.1.39
8.1.28
8.1.18
8.1.08
8.0.08
7.10.19
7.10.08
7.9.08
7.8.08
7.7.48
7.7.38
7.7.29
7.7.18
7.7.08
7.6.08
7.5.08
7.4.08
7.3.08
7.2.19
7.2.09
7.1.08
7.0.010
6.11.18
6.11.09
6.10.38
6.10.28
6.10.18
6.10.08
6.9.59
6.9.410
6.9.39
6.9.29
6.9.18
6.9.09
6.8.18
6.8.09
6.7.08
6.6.08
6.5.08
6.4.08
6.3.18
6.3.08
6.2.212
6.2.19
6.2.08
6.1.08
6.0.08
5.12.011
5.11.18
5.11.010
5.10.18
5.10.08
5.9.110
5.9.08
5.8.09
5.7.18
5.7.09
5.6.08
5.5.08
5.4.111
5.4.09
5.3.08
5.2.08
5.1.18
5.1.08
5.0.09
4.8.48
4.8.39
4.8.212
4.8.110
4.8.09
4.7.38
4.7.28
4.7.18
4.7.09
4.6.29
4.6.19
4.6.09
4.5.08
4.4.78
4.4.610
4.4.58
4.4.48
4.4.38
4.4.29
4.4.19
4.4.08
4.3.210
4.3.18
4.3.08
4.2.69
4.2.58
4.2.48
4.2.39
4.2.28
4.2.111
4.2.08
4.1.213
4.1.18
4.1.08
4.0.09
0.12.188
0.12.1710
0.12.168
0.12.158
0.12.149
0.12.139
0.12.128
0.12.118
0.12.108
0.12.98
0.12.88
0.12.78
0.12.69
0.12.58
0.12.48
0.12.38
0.12.28
0.12.18
0.12.08
0.11.1611
0.11.158
0.11.148
0.11.138
0.11.1216
0.11.118
0.11.108
0.11.98
0.11.88
0.11.711
0.11.68
0.11.58
0.11.48
0.11.38
0.11.28
0.11.18
0.11.08
0.10.4813
0.10.478
0.10.468
0.10.459
0.10.448
0.10.438
0.10.428
0.10.418
0.10.408
0.10.398
0.10.388
0.10.378
0.10.368
0.10.358
0.10.349
0.10.338
0.10.328
0.10.3110
0.10.309
0.10.298
0.10.288
0.10.278
0.10.269
0.10.258
0.10.2411
0.10.238
0.10.228
0.10.218
0.10.209
0.10.199
0.10.189
0.10.178
0.10.169
0.10.159
0.10.148
0.10.139
0.10.128
0.10.119
0.10.1012
0.10.98
0.10.88
0.10.78
0.10.68
0.10.58
0.10.48
0.10.38
0.10.28
0.10.18
0.10.08
0.9.129
0.9.118
0.9.1010
0.9.98
0.9.88
0.9.78
0.9.68
0.9.58
0.9.48
0.9.38
0.9.28
0.9.18
0.9.08
0.8.288
0.8.278
0.8.269
0.8.258
0.8.249
0.8.238
0.8.228
0.8.218
0.8.209
0.8.198
0.8.188
0.8.179
0.8.169
0.8.158
0.8.148
0.8.138
0.8.128
0.8.118
0.8.108
0.8.99
0.8.88
0.8.78
0.8.69
0.8.59
0.8.49
0.8.38
0.8.213
0.8.18
0.8.08
0.7.129
0.7.119
0.7.108
0.7.99
0.7.88
0.7.78
0.7.68
0.7.58
0.7.48
0.7.38
0.7.28
0.7.18
0.7.08
0.6.218
0.6.208
0.6.198
0.6.188
0.6.179
0.6.169
0.6.158
0.6.148
0.6.138
0.6.128
0.6.118
0.6.108
0.6.99
0.6.88
0.6.78
0.6.69
0.6.58
0.6.48
0.6.38
0.6.29
0.6.18
0.6.09
0.5.1029
0.5.99
0.5.88
0.5.78
0.5.68
0.5.59
0.5.48
0.5.39
0.5.28
0.5.19
0.5.09
0.4.128
0.4.118
0.4.108
0.4.99
0.4.88
0.4.78
0.4.68
0.4.58
0.4.48
0.4.38
0.4.28
0.4.18
0.4.08
0.3.89
0.3.78
0.3.68
0.3.58
0.3.48
0.3.38
0.3.28
0.3.18
0.3.08
0.2.68
0.2.58
0.2.48
0.2.38
0.2.28
0.2.110
0.2.08
0.1.10410
0.1.10310
0.1.1028
0.1.1018
0.1.1008
0.1.998
0.1.989
0.1.979
0.1.968
0.1.958
0.1.948
0.1.938
0.1.928
0.1.918
0.1.908
0.1.338
0.1.328
0.1.318
0.1.308
0.1.298
0.1.288
0.1.279
0.1.2611
0.1.259
0.1.248
0.1.238
0.1.228
0.1.218
0.1.209
0.1.198
0.1.188
0.1.178
0.1.168
0.1.158
0.1.148

Package Sidebar

Install

npm i node

Weekly Downloads

270,756

Version

22.15.0

License

ISC

Unpacked Size

1.49 kB

Total Files

3

Last publish

Collaborators

  • isaacs
  • aredridel