0% found this document useful (0 votes)
9 views5 pages

Nodejs

The document details the usage of Node Version Manager (NVM) to manage Node.js versions on a Windows PowerShell environment. It shows commands for checking installed versions, installing new versions, and switching between them, along with some errors encountered regarding script execution policies. The final command indicates an attempt to run a DAML script with specified parameters.

Uploaded by

praphulls19
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views5 pages

Nodejs

The document details the usage of Node Version Manager (NVM) to manage Node.js versions on a Windows PowerShell environment. It shows commands for checking installed versions, installing new versions, and switching between them, along with some errors encountered regarding script execution policies. The final command indicates an attempt to run a DAML script with specified parameters.

Uploaded by

praphulls19
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Windows PowerShell

Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements!


[Link]

PS C:\Users\praphullkumarsingh> nvm -v
1.1.12
PS C:\Users\praphullkumarsingh> nvm list

* 16.13.1 (Currently using 64-bit executable)


PS C:\Users\praphullkumarsingh> node --version
v16.13.1
PS C:\Users\praphullkumarsingh> nvm list available

| CURRENT | LTS | OLD STABLE | OLD UNSTABLE |


|--------------|--------------|--------------|--------------|
| 22.5.1 | 20.16.0 | 0.12.18 | 0.11.16 |
| 22.5.0 | 20.15.1 | 0.12.17 | 0.11.15 |
| 22.4.1 | 20.15.0 | 0.12.16 | 0.11.14 |
| 22.4.0 | 20.14.0 | 0.12.15 | 0.11.13 |
| 22.3.0 | 20.13.1 | 0.12.14 | 0.11.12 |
| 22.2.0 | 20.13.0 | 0.12.13 | 0.11.11 |
| 22.1.0 | 20.12.2 | 0.12.12 | 0.11.10 |
| 22.0.0 | 20.12.1 | 0.12.11 | 0.11.9 |
| 21.7.3 | 20.12.0 | 0.12.10 | 0.11.8 |
| 21.7.2 | 20.11.1 | 0.12.9 | 0.11.7 |
| 21.7.1 | 20.11.0 | 0.12.8 | 0.11.6 |
| 21.7.0 | 20.10.0 | 0.12.7 | 0.11.5 |
| 21.6.2 | 20.9.0 | 0.12.6 | 0.11.4 |
| 21.6.1 | 18.20.4 | 0.12.5 | 0.11.3 |
| 21.6.0 | 18.20.3 | 0.12.4 | 0.11.2 |
| 21.5.0 | 18.20.2 | 0.12.3 | 0.11.1 |
| 21.4.0 | 18.20.1 | 0.12.2 | 0.11.0 |
| 21.3.0 | 18.20.0 | 0.12.1 | 0.9.12 |
| 21.2.0 | 18.19.1 | 0.12.0 | 0.9.11 |
| 21.1.0 | 18.19.0 | 0.10.48 | 0.9.10 |

This is a partial list. For a complete list, visit [Link]


PS C:\Users\praphullkumarsingh> nvm install 22.5.1
Downloading [Link] version 22.5.1 (64-bit)...
Extracting node and npm...
Complete
npm v10.8.2 installed successfully.

Installation complete. If you want to use this version, type

nvm use 22.5.1


PS C:\Users\praphullkumarsingh> nvm list

22.5.1
* 16.13.1 (Currently using 64-bit executable)
PS C:\Users\praphullkumarsingh> nvm use 22.5.1
Now using node v22.5.1 (64-bit)
PS C:\Users\praphullkumarsingh> nvm list

* 22.5.1 (Currently using 64-bit executable)


16.13.1
PS C:\Users\praphullkumarsingh> node --version
v22.5.1
PS C:\Users\praphullkumarsingh> nvm use 16.3.1
node v16.3.1 (64-bit) is not installed.
PS C:\Users\praphullkumarsingh> nvm use 16.13.1
Now using node v16.13.1 (64-bit)
PS C:\Users\praphullkumarsingh> node --version
v16.13.1
PS C:\Users\praphullkumarsingh> npm --version
8.1.2
PS C:\Users\praphullkumarsingh> nvm use 22.5.1
Now using node v22.5.1 (64-bit)
PS C:\Users\praphullkumarsingh> node --version
v22.5.1
PS C:\Users\praphullkumarsingh> npm --version
npm : File C:\Program Files\nodejs\npm.ps1 cannot be loaded because running
scripts is disabled on this system. For
more information, see about_Execution_Policies at https:/[Link]/fwlink/?
LinkID=135170.
At line:1 char:1
+ npm --version
+ ~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\Users\praphullkumarsingh> npm --version
npm : File C:\Program Files\nodejs\npm.ps1 cannot be loaded because running
scripts is disabled on this system. For
more information, see about_Execution_Policies at https:/[Link]/fwlink/?
LinkID=135170.
At line:1 char:1
+ npm --version
+ ~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\Users\praphullkumarsingh> nvm install 16.13.1
Version 16.13.1 is already installed.
PS C:\Users\praphullkumarsingh> nvm list

* 22.5.1 (Currently using 64-bit executable)


16.13.1
PS C:\Users\praphullkumarsingh> nvm uninstall 16.13.1
Uninstalling node v16.13.1...Error removing node v16.13.1
Manually remove C:\Users\praphullkumarsingh\AppData\Roaming\nvm\v16.13.1.
PS C:\Users\praphullkumarsingh> nvm install 16.13.1
Downloading [Link] version 16.13.1 (64-bit)...
Extracting node and npm...
Complete
npm v8.1.2 installed successfully.

Installation complete. If you want to use this version, type

nvm use 16.13.1


PS C:\Users\praphullkumarsingh> nvm list

* 22.5.1 (Currently using 64-bit executable)


16.13.1
PS C:\Users\praphullkumarsingh> nvm use 16.13.1
Now using node v16.13.1 (64-bit)
PS C:\Users\praphullkumarsingh> node --version
v16.13.1
PS C:\Users\praphullkumarsingh> nvm --version
1.1.12
PS C:\Users\praphullkumarsingh> npm --version
8.1.2
PS C:\Users\praphullkumarsingh> nvm use 22.5.1
Now using node v22.5.1 (64-bit)
PS C:\Users\praphullkumarsingh>

daml script --dar .daml/dist/[Link] --script-name [Link]:setup --ledger-


host localhost --ledger-port 6865

You might also like