53 lines
2.3 KiB
Plaintext
53 lines
2.3 KiB
Plaintext
---
|
|
title: Permission Denied
|
|
sidebar_position: 1
|
|
description: A step-by-step guide to fix the issue when access is denied due to insufficient permissions.
|
|
keywords:
|
|
[
|
|
Jan AI,
|
|
Jan,
|
|
ChatGPT alternative,
|
|
local AI,
|
|
private AI,
|
|
conversational AI,
|
|
no-subscription fee,
|
|
large language model,
|
|
troubleshooting,
|
|
permission denied,
|
|
]
|
|
---
|
|
|
|
<head>
|
|
<title>Resolving "Permission Denied" Error in Jan AI</title>
|
|
<meta charSet="utf-8" />
|
|
<meta name="description" content="Learn how to resolve the 'Permission Denied' error encountered while running Jan AI by changing ownership of the `~/.npm` directory to the current user." />
|
|
<meta name="keywords" content="Jan AI, Jan, ChatGPT alternative, local AI, private AI, conversational AI, no-subscription fee, large language model, troubleshooting, permission denied" />
|
|
<meta name="twitter:card" content="summary" />
|
|
<link rel="canonical" href="https://jan.ai/troubleshooting/permission-denied" />
|
|
<meta property="og:title" content="Resolving 'Permission Denied' Error in Jan AI" />
|
|
<meta property="og:description" content="Learn how to resolve the 'Permission Denied' error encountered while running Jan AI by changing ownership of the `~/.npm` directory to the current user." />
|
|
<meta property="og:url" content="https://jan.ai/troubleshooting/permission-denied" />
|
|
<meta property="og:type" content="article" />
|
|
<meta property="og:image" content="https://jan.ai/img/og-image.png" />
|
|
</head>
|
|
|
|
When you run Jan, you may encounter the following error:
|
|
|
|
```
|
|
Uncaught (in promise) Error: Error invoking layout-480796bff433a3a3.js:538 remote method 'installExtension':
|
|
Error Package /Applications/Jan.app/Contents/Resources/app.asar.unpacked/pre-install/janhq-assistant-extension-1.0.0.tgz does not contain a valid manifest:
|
|
Error EACCES: permission denied, mkdtemp '/Users/username/.npm/_cacache/tmp/ueCMn4'
|
|
```
|
|
|
|
This error mainly caused by permission problem during installation. To resolve this issue, follow these steps:
|
|
|
|
1. Open your terminal.
|
|
|
|
2. Execute the following command to change ownership of the `~/.npm` directory to the current user:
|
|
|
|
```sh
|
|
sudo chown -R $(whoami) ~/.npm
|
|
```
|
|
:::note
|
|
This command ensures that the necessary permissions are granted for Jan installation, resolving the encountered error.
|
|
::: |