Installation
Install PriyoScript globally with npm and verify your CLI setup.
Overview
PriyoScript currently supports npm global installation.
This installs the monalisa command so you can run .priyo files from any folder.
Global install is preferred for end users because it keeps usage simple:
one command to install, one command (monalisa) to run.
Recommended choice
Use npm global install as the official stable path.
1. Prerequisites
- Node.js 18 or higher
- npm (comes with Node.js)
Node.js
You can download Node.js from https://nodejs.org/. Make sure to install version 18 or higher.
2. What Happens During Installation
When you install PriyoScript:
- The PriyoScript CLI is installed on your system.
- Command shims are created (
monalisa). - Your PATH is updated so the command works from any folder.
- You verify installation using
monalisa -h.
3. Install (All Platforms)
Install
npm install -g priyoscriptVerify Installation
monalisa -h
monalisa -replmonalisa -hconfirms CLI command wiring is correct.monalisa -replconfirms runtime starts and interactive mode is available.
Installation success
If both commands work without errors, you have successfully installed PriyoScript! Congratulations!
Run Your First Program
Create a file named hello.priyo:
monalisa {
priyoTell("Hello, PriyoScript!")
}Run it:
monalisa hello.priyoExpected output:
Hello, PriyoScript!Update PriyoScript
npm install -g priyoscript@latestUninstall (npm method)
npm uninstall -g priyoscript4. Troubleshooting
Command not found
If monalisa is not recognized:
- Close the terminal completely.
- Open a new terminal.
- Run
monalisa -hagain.
If it still fails, check whether the install bin folder exists in your system PATH.
Execution policy error
If PowerShell blocks setup scripts, make sure you run the command exactly as shown with
-ExecutionPolicy Bypass.
Last updated on