clerk / javascript

Official Javascript repository for Clerk authentication
https://clerk.com
MIT License
1.06k stars 239 forks source link

Install clerk package error with pnpm #2455

Closed Arterning closed 8 months ago

Arterning commented 8 months ago

Preliminary Checks

Reproduction / Replay Link

https://github.com/clerk/javascript

Publishable key

NONE, I stucked in pnpm install phase

Description

Install clerck package error with pnpm

 $$ pnpm add @clerk/nextjs
  ERR_PNPM_NO_MATCHING_VERSION  No matching version found for @clerk/backend@0.37.0

This error happened while installing the dependencies of @clerk/nextjs@4.29.1

The latest release of @clerk/backend is "0.36.1".

Other releases are:
  * alpha-v5: 1.0.0-alpha-v5.11
  * canary: 0.37.0-canary.v6c64c9b
  * snapshot: 0.36.1-snapshot.vf6fc860
  * staging: 0.34.0-staging.v4f9214a

If you need the full list of all 799 published versions run "$ pnpm view @clerk/backend versions".
Progress: resolved 273, reused 263, downloaded 0, added 0

Environment

System:
    OS: Linux 4.4 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
    CPU: (6) x64 AMD Ryzen 5 3500X 6-Core Processor
    Memory: 1.80 GB / 15.95 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 18.18.1 - ~/.nvm/versions/node/v18.18.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.18.1/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v18.18.1/bin/npm
    pnpm: 8.9.0 - ~/.nvm/versions/node/v18.18.1/bin/pnpm
    bun: 1.0.3 - ~/.bun/bin/bun
  npmPackages:
    @hookform/resolvers: ^3.3.0 => 3.3.3
    @prisma/client: ^5.2.0 => 5.7.1
    @radix-ui/react-accordion: ^1.1.2 => 1.1.2
    @radix-ui/react-alert-dialog: ^1.0.4 => 1.0.5
    @radix-ui/react-aspect-ratio: ^1.0.3 => 1.0.3
    @radix-ui/react-avatar: ^1.0.3 => 1.0.4
    @radix-ui/react-checkbox: ^1.0.4 => 1.0.4
    @radix-ui/react-collapsible: ^1.0.3 => 1.0.3
    @radix-ui/react-context-menu: ^2.1.4 => 2.1.5
    @radix-ui/react-dialog: ^1.0.4 => 1.0.5
    @radix-ui/react-dropdown-menu: ^2.0.5 => 2.0.6
    @radix-ui/react-hover-card: ^1.0.6 => 1.0.7
    @radix-ui/react-icons: ^1.3.0 => 1.3.0
    @radix-ui/react-label: ^2.0.2 => 2.0.2
    @radix-ui/react-menubar: ^1.0.3 => 1.0.4
    @radix-ui/react-navigation-menu: ^1.1.3 => 1.1.4
    @radix-ui/react-popover: ^1.0.6 => 1.0.7
    @radix-ui/react-progress: ^1.0.3 => 1.0.3
    @radix-ui/react-radio-group: ^1.1.3 => 1.1.3
    @radix-ui/react-scroll-area: ^1.0.4 => 1.0.5
    @radix-ui/react-select: ^1.2.2 => 1.2.2
    @radix-ui/react-separator: ^1.0.3 => 1.0.3
    @radix-ui/react-slider: ^1.1.2 => 1.1.2
    @radix-ui/react-slot: ^1.0.2 => 1.0.2
    @radix-ui/react-switch: ^1.0.3 => 1.0.3
    @radix-ui/react-tabs: ^1.0.4 => 1.0.4
    @radix-ui/react-toast: ^1.1.4 => 1.1.5
    @radix-ui/react-toggle: ^1.0.3 => 1.0.3
    @radix-ui/react-tooltip: ^1.0.6 => 1.0.7
    @types/node: 20.5.6 => 20.5.6
    @types/react: 18.2.21 => 18.2.21
    @types/react-dom: 18.2.7 => 18.2.7
    autoprefixer: 10.4.15 => 10.4.15
    class-variance-authority: ^0.7.0 => 0.7.0
    clsx: ^2.0.0 => 2.0.0
    cmdk: ^0.2.0 => 0.2.0
    date-fns: ^2.30.0 => 2.30.0
    eslint: 8.47.0 => 8.47.0
    eslint-config-next: 13.4.19 => 13.4.19
    next: 13.4.19 => 13.4.19
    next-themes: ^0.2.1 => 0.2.1
    postcss: 8.4.28 => 8.4.28
    prisma: ^5.2.0 => 5.7.1
    react: 18.2.0 => 18.2.0
    react-day-picker: ^8.8.1 => 8.10.0
    react-dom: 18.2.0 => 18.2.0
    react-hook-form: ^7.45.4 => 7.49.2
    tailwind-merge: ^1.14.0 => 1.14.0
    tailwindcss: 3.3.3 => 3.3.3
    tailwindcss-animate: ^1.0.6 => 1.0.7
    typescript: 5.2.2 => 5.2.2
    zod: ^3.22.2 => 3.22.4
burxtx commented 8 months ago

I have the same issue using npm install:

$ npm i @clerk/nextjs                                                                                                                
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @clerk/backend@0.37.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
GSemir0418 commented 8 months ago

I have also got the same problem, which seems to only occur in macOS. My environment info:

System:
    OS: macOS 13.0
    CPU: (8) arm64 Apple M1 Pro
    Memory: 691.36 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
    pnpm: 7.28.0 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 120.0.6099.129
    Safari: 16.1
  npmPackages:
    @radix-ui/react-slot: ^1.0.2 => 1.0.2 
    @types/node: ^20 => 20.10.5 
    @types/react: ^18 => 18.2.45 
    @types/react-dom: ^18 => 18.2.18 
    autoprefixer: ^10.0.1 => 10.4.16 
    class-variance-authority: ^0.7.0 => 0.7.0 
    clsx: ^2.0.0 => 2.0.0 
    eslint: ^8 => 8.56.0 
    eslint-config-next: 14.0.4 => 14.0.4 
    lucide-react: ^0.299.0 => 0.299.0 
    next: 14.0.4 => 14.0.4 
    postcss: ^8 => 8.4.32 
    react: ^18 => 18.2.0 
    react-dom: ^18 => 18.2.0 
    tailwind-merge: ^2.1.0 => 2.1.0 
    tailwindcss: ^3.3.0 => 3.4.0 
    tailwindcss-animate: ^1.0.7 => 1.0.7 
    typescript: ^5 => 5.3.3
BRKalow commented 8 months ago

Hi y'all, it looks like 0.37.0 is published: https://www.npmjs.com/package/@clerk/backend/v/0.37.0

Are you still experiencing this?

Arterning commented 8 months ago

Thanks, it's OK now