PriyoScriptPriyoScript

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:

  1. The PriyoScript CLI is installed on your system.
  2. Command shims are created (monalisa).
  3. Your PATH is updated so the command works from any folder.
  4. You verify installation using monalisa -h.

3. Install (All Platforms)

Install

npm install -g priyoscript

Verify Installation

monalisa -h
monalisa -repl
  • monalisa -h confirms CLI command wiring is correct.
  • monalisa -repl confirms 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.priyo

Expected output:

Hello, PriyoScript!

Update PriyoScript

npm install -g priyoscript@latest

Uninstall (npm method)

npm uninstall -g priyoscript

4. Troubleshooting

Command not found

If monalisa is not recognized:

  1. Close the terminal completely.
  2. Open a new terminal.
  3. Run monalisa -h again.

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

On this page