Permission denied (publickey) error during npm install tailwindcss/vite" #152671
Unanswered
kapilakunwar
asked this question in
Programming Help
Replies: 1 comment
-
Welcome to the GitHub Community, @kapilakunwar, we're happy you're here! You are more likely to get a useful response if you are posting your question(s) in the applicable category and are explicit about what your project entails--giving a few more details might help someone give you a nudge in the right direction. I've gone ahead and moved it for you. Good luck! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Dear GitHub Support,
I am encountering a "Permission denied (publickey)" error when trying to install the tailwindcss/vite package using npm install tailwindcss@tailwindcss/vite. I have already tried the following troubleshooting steps:
Added my public SSH key to my GitHub account.
Started the SSH agent and added my private key using ssh-add C:\Users\kapil.ssh\id_ed25519.
Verified that the key is added to the agent using ssh-add -l.
Entered the correct passphrase for my SSH key.
Restarted my computer.
Cleared the npm cache using npm cache clean --force.
Verified that the "OpenSSH Authentication Agent" service is running and set to automatic startup.
Checked my antivirus and firewall settings.
the following error:
npm error code 128
npm error An unknown git error occurred
npm error command git --no-replace-objects ls-remote ssh://git@github.com/tailwindcss/vite.git
npm error git@github.com: Permission denied (publickey).
npm error fatal: Could not read from remote repository.
npm error
npm error Please make sure you have the correct access rights
npm error and the repository exists.
Here is my package.json file:
{
"name": "ai-trip-planner",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"autoprefixer": "^10.4.20",
"postcss": "^8.5.3",
"tailwindcss": "^4.0.9",
"vite": "^6.2.0"
},
"dependencies": {
"@googlemaps/react-wrapper": "^1.1.42",
"axios": "^1.8.1",
"firebase": "^11.3.1",
"react-router-dom": "^7.2.0"
}
}
Here is the output of the following commands:
npm -v: [Your npm version]
node -v: [Your Node.js version]
git --version: [Your Git version]
ssh-add -l: [Output of ssh-add -l command]
My Windows version is: [Your Windows version].
Could you please assist me in resolving this issue?
Thank you for your time and assistance.
Sincerely,
[kapila]
Beta Was this translation helpful? Give feedback.
All reactions