Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Node 23 PR/53725 -->
- https://github.com/nodejs/node/pull/53725#issuecomment-2227006441
- <!-- Online typescript environment -->
- https://codesandbox.io/p/devbox/node--experimental-strip-types-with-node-js-nightly-dxdtmp?file=%2Findex.ts
- <!-- NVS Node Version Switcher -->
- https://github.com/jasongin/nvs
- <!-- How to install the nightly version locally -->
- 1. First install NVS inside your machine:
- - for windows users go here: https://github.com/jasongin/nvs?tab=readme-ov-file#windows
- - for linux/mac go here: https://github.com/jasongin/nvs?tab=readme-ov-file#mac-linux
- 2. After that you need to add the the nightly channel inside nvs:
- - nvs remote add nightly https://nodejs.org/download/nightly/
- 3. After running the previous command just type `nvs` in the command line and hit enter, the output below will be shown:
- .---------------------------------------------------.
- | Select a remote |
- +---------------------------------------------------+
- | [a] node https://nodejs.org/dist/ |
- | b) nightly https://nodejs.org/download/nightly/ |
- '---------------------------------------------------'
- 4. Select the nightly channel, then the following output will appear:
- .----------------------------------------------------------------------------.
- | Select a nightly version |
- +----------------------------------------------------------------------------+
- | [a] nightly/23.0.0-nightly20240726d955497874 |
- | b) nightly/23.0.0-nightly202407253de7a4c374 |
- | c) nightly/23.0.0-nightly20240724aeaffbb385 |
- | d) nightly/23.0.0-nightly20240723cad73dadba |
- | e) nightly/23.0.0-nightly20240722259163802c |
- | f) nightly/23.0.0-nightly2024072179759fa0ac |
- | g) nightly/23.0.0-nightly20240720cf8e5356d9 |
- | h) nightly/23.0.0-nightly20240719a523c345b1 |
- | i) nightly/23.0.0-nightly20240718bcec922e3e |
- | j) nightly/23.0.0-nightly2024071586415e4688 |
- | k) nightly/23.0.0-nightly20240712fc233627ed |
- | l) nightly/23.0.0-nightly2024071197918364f6 |
- | m) nightly/23.0.0-nightly20240710e849dd6632 |
- | n) nightly/23.0.0-nightly20240709b9289a6e29 |
- | o) nightly/23.0.0-nightly2024070366b76e24e2 |
- '--\/------------------------------------------------------------------------'
- 5. Select any build higher than the `nightly/23.0.0-nightly202407253de7a4c374` version
- 6. Then you have to make this version available by running the command:
- - nvs link nightly/23.0.0-nightly<your selected version>/x64
- 7. After that, open vscode create a .ts file, and run the given command:
- - node --experimental-strip-types <your file>.ts
- 8. Finally you need to clean everything:
- - nvs rm nightly/23.0.0-nightly<your selected version>/x64
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement