How to install openssl on NextJS repl?

I tried running npm i openssl but it doesn’t solve it. I also tried with the global flag, npm i -g openssl, but access is denied. I tried using nix but still no solution. What can I do?

Add openssl to your replit.nix file:

{ pkgs }: {
	deps = [
		pkgs.nodejs-16_x
		pkgs.nodePackages.typescript-language-server
		pkgs.nodePackages.yarn
		pkgs.replitPackages.jest
		pkgs.openssl
	];
}

Then run yarn add openssl :slight_smile:

2 Likes