# Installation

> Learn how to quickly install Aspose.Slides. Step-by-step guide, system requirements, and code samples — start working with PowerPoint presentations today!

Source: https://docs.aspose.com/slides/nodejs-java/installation/
Updated: 2026-08-13


## **Introduction**

Aspose.Slides for Node.js via Java is platform-independent API and can be used on any platform (Windows, Linux and MacOS) where `Node.js` and [`java`](https://www.npmjs.com/package/java) bridge are installed.

## **Install from NPM**

You can easily install Aspose.Slides for Node.js via Java from [NPM](https://www.npmjs.com/).

1. Create a new folder and initiate a new project using the following command:
	```
	$ npm init
	```
	
2. Fill in the title and version fields (leave the remaining fields with their default values).

3. Install Aspose.Slides for Node.js via Java using the following command:
	```
	$ npm install aspose.slides.via.java
	```

If you encounter any problem during the installation process, please refer to this [article](/slides/nodejs-java/troubleshooting-installation/).

**Usage Example**:

Create a file named `hello.js` in your project folder and add the following sample code:

```javascript
var aspose = aspose || {};

aspose.slides = require("aspose.slides.via.java");

var pres = new aspose.slides.Presentation();

var slide = pres.getSlides().addEmptySlide(pres.getLayoutSlides().get_Item(0));

slide.getShapes().get_Item(0).getTextFrame().setText("Slide Title Heading");

pres.save("out.pptx", aspose.slides.SaveFormat.Pptx)

console.log("Done");
```

## **Install from ZIP archive**

To install and use Aspose.Slides for Node.js via Java from a ZIP archive, follow these instructions instead:

### **Windows**

1. Install JDK8 and configure `JAVA_HOME` environment variable.
1. Install Node.js (https://nodejs.org/en/download/) and add node.exe to `PATH`.
1. Install node-gyp.
1. Install Windows Build Tools.
1. Install [`java`](https://www.npmjs.com/package/java) bridge and run these commands in Command Prompt as an administrator:
	```bash
	$ mkdir aspose.slides.nodejs

	$ cd aspose.slides.nodejs

	$ npm install -g node-gyp

	$ npm install --global --production windows-build-tools

	$ npm install java
	```
6. [Download Aspose.Slides for Node.js via Java](https://releases.aspose.com/slides/nodejs-java/) and extract it to `aspose.slides.nodejs/node_modules/aspose.slides.via.java`.
7. Create a file named `hello.js` in `aspose.slides.nodejs` folder using the following sample code:

	```javascript
	var aspose = aspose || {};

	aspose.slides = require("aspose.slides.via.java");

	var pres = new aspose.slides.Presentation();

	var slide = pres.getSlides().addEmptySlide(pres.getLayoutSlides().get_Item(0));

	slide.getShapes().get_Item(0).getTextFrame().setText("Slide Title Heading");

	pres.save("out.pptx", aspose.slides.SaveFormat.Pptx)

	console.log("Done");
	```

8. Now run `node hello.js` @command prompt to run it.

### **Linux**

1. Install Node.js (https://nodejs.org/en/download/).
1. Install JDK8 for Linux and configure `JAVA_HOME` environment variable.
1. Install python 2.x
1. Install [`java`](https://www.npmjs.com/package/java) bridge. You can run these commands in terminal:
	```bash
	$ mkdir aspose.slides.nodejs

	$ cd aspose.slides.nodejs

	$ npm install java
	```
5. [Download Aspose.Slides for Node.js via Java](https://releases.aspose.com/slides/nodejs-java/) and extract it to `aspose.slides.nodejs/node_modules/aspose.slides.via.java`.
6. Create a test file named `hello.js` using this sample code in `aspose.slides.nodejs` folder:

	```javascript
	var aspose = aspose || {};

	aspose.slides = require("aspose.slides.via.java");

	var pres = new aspose.slides.Presentation();

	var slide = pres.getSlides().addEmptySlide(pres.getLayoutSlides().get_Item(0));

	slide.getShapes().get_Item(0).getTextFrame().setText("Slide Title Heading");

	pres.save("out.pptx", aspose.slides.SaveFormat.Pptx)

	console.log("Done");
	```
7. Now run `node hello.js` @command prompt to run it.

### **Mac**

1. Install Node.js (https://nodejs.org/en/download/).
1. Install JDK8 for Mac and configure `JAVA_HOME` environment variable.
1. Modify JVMCapabilities section in `/Library/Java/JavaVirtualMachines/jdk1.8.x_xxx.jdk/Contents/Info.plist` with root privilege. `jdk1.8.x_xxx.jdk` depends on your jdk version. Make it look like this:
	```xml
	<key>JavaVM</key>
		<dict>
			<key>JVMCapabilities</key>
			<array>
					<string>JNI</string>
					<string>BundledApp</string>
					<string>CommandLine</string>
			</array>
	```
4. Install python 2.x (if it is not installed).
5. Install Xcode Command Line Tools.
6. Install [`java`](https://www.npmjs.com/package/java) bridge. You can run below commands in terminal:
	```bash
	$ mkdir aspose.slides.nodejs
	 
	$ cd aspose.slides.nodejs
	 
	$ npm install java
	```
7. Download Aspose.Slides for Node.js via Java and extract it into `aspose.slides.nodejs/node_modules/aspose.slides.via.java`.
8. Create a test file named `hello.js` using this sample code in `aspose.slides.nodejs` folder:

	```javascript
	var aspose = aspose || {};

	aspose.slides = require("aspose.slides.via.java");

	var pres = new aspose.slides.Presentation();

	var slide = pres.getSlides().addEmptySlide(pres.getLayoutSlides().get_Item(0));

	slide.getShapes().get_Item(0).getTextFrame().setText("Slide Title Heading");

	pres.save("out.pptx", aspose.slides.SaveFormat.Pptx)

	console.log("Done");
	```
9. Now run `node hello.js` @command prompt to run it.


{{% alert color="info" %}}

Please use the following [article](https://docs.aspose.com/slides/nodejs-java/troubleshooting-installation/) if you encounter compilation errors during installation of Aspose.Slides for Node.js via Java.

{{% /alert %}}

## **FAQ**

### Is there a free version or trial limitation?

Yes, by default, Aspose.Slides runs in evaluation mode, which places watermarks and may have other limitations. To remove restrictions, you need to apply a valid [license](/slides/nodejs-java/licensing/).



## Related articles

- [Troubleshooting Installation of Aspose.Slides for Node.js via Java](https://docs.aspose.com/slides/nodejs-java/troubleshooting-installation/)