Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm i fails #68

Open
abhi-dasgupta opened this issue Jan 14, 2024 · 4 comments
Open

pnpm i fails #68

abhi-dasgupta opened this issue Jan 14, 2024 · 4 comments

Comments

@abhi-dasgupta
Copy link

abhi-dasgupta commented Jan 14, 2024

Screenshot 2024-01-14 134758

Directus is hosted on DigitalOcean through Cloudron...everything works fine on that end

@omgitsjan
Copy link
Contributor

Hey there! I need a bit more info to get a clearer picture of what's going on. Could you tell me which pnpm version you're using? Also, it would be super helpful if you could walk me through what you did step by step, or even better, if you could recreate the issue for me. And don't forget to mention whether you're on Windows, Linux, or something else.

I'm thinking there might be a problem with your API key permissions (as it stands, there is a problem with permission on the Directus end). Have you double-checked that the user in Directus has all the right privileges? And make sure you hit 'save' after setting up your API key, it's an easy thing to miss.

Also, double-check the roles here:
image

@mrdankuta
Copy link

I am experiencing the same challenge

@sangrepura
Copy link

sangrepura commented Apr 1, 2024

Same here. There's a lot of things broken in this repo. Also my API token is saved and correct.

pnpm i
Lockfile is up to date, resolution step is skipped
Packages: +1274
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Packages are copied from the content-addressable store to the virtual store.
  Content-addressable store is at: D:\.pnpm-store\v3
  Virtual store is at:             node_modules/.pnpm
Downloading registry.npmjs.org/@iconify/json/2.2.166: 68.4 MB/68.4 MB, done
Progress: resolved 1274, reused 905, downloaded 368, added 1274, done
node_modules/.pnpm/vue-demi@0.14.7_vue@3.4.21/node_modules/vue-demi: Running postinstall script, done in 142ms
node_modules/.pnpm/sharp@0.32.6/node_modules/sharp: Running install script, done in 1s

dependencies:
+ @nuxt/image 1.1.0
+ nuxt-og-image 3.0.0-rc.23

devDependencies:
+ @directus/sdk 14.0.0
+ @directus/types 11.0.3
+ @formkit/auto-animate 1.0.0-beta.6
+ @headlessui/vue 1.7.16
+ @iconify/json 2.2.166
+ @nuxt/devtools 1.0.8
+ @nuxt/ui 2.11.1
+ @nuxtjs/color-mode 3.3.2
+ @nuxtjs/eslint-config-typescript 12.1.0
+ @nuxtjs/eslint-module 4.1.0
+ @nuxtjs/google-fonts 3.1.3
+ @nuxtjs/tailwindcss 6.10.3
+ @stripe/stripe-js 2.2.2
+ @tailwindcss/forms 0.5.7
+ @tailwindcss/typography 0.5.10
+ @types/uuid 9.0.7
+ @vueuse/core 10.7.1
+ @vueuse/motion 2.0.0
+ @vueuse/nuxt 10.7.1
+ eslint 8.56.0
+ eslint-config-prettier 9.1.0
+ eslint-plugin-prettier 5.1.2
+ eslint-plugin-vue 9.19.2
+ floating-vue 2.0.0-beta.24
+ form-data 4.0.0
+ jwt-decode 3.1.2
+ micromark 4.0.0
+ micromark-extension-gfm 3.0.0
+ nuxt 3.10.3
+ nuxt-icon 0.6.8
+ nuxt-schema-org 3.3.2
+ nuxt-simple-sitemap 3.4.0
+ prettier 3.1.1
+ stripe 13.8.0
+ typescript 5.3.3
+ uuid 9.0.1
+ v-perfect-signature 1.4.0
+ vue-tsc 1.8.27

> @ postinstall D:\Code\Directus\agency-os
> nuxt prepare

◐ Loading Directus Module                                                                                                                               17:27:11

 ERROR  fetch failed                                                                                                                                    17:27:11

  at node:internal/deps/undici/undici:12345:11
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  at async R (node_modules\.pnpm\@directus+sdk@14.0.0\node_modules\@directus\sdk\dist\index.cjs:1:5976)
  at async Object.request (node_modules\.pnpm\@directus+sdk@14.0.0\node_modules\@directus\sdk\dist\index.cjs:1:34790)
  at async setup (D:/Code/Directus/agency-os/modules/directus/index.ts:163:23)
  at async normalizedModule (D:/Code/Directus/agency-os/node_modules/.pnpm/@nuxt+kit@3.10.3/node_modules/@nuxt/kit/dist/index.mjs:2112:18)
  at async installModule (/D:/Code/Directus/agency-os/node_modules/.pnpm/@nuxt+kit@3.10.3/node_modules/@nuxt/kit/dist/index.mjs:2415:95)
  at async initNuxt (/D:/Code/Directus/agency-os/node_modules/.pnpm/nuxt@3.10.3_eslint@8.56.0_typescript@5.3.3_vite@5.1.4_vue-tsc@1.8.27/node_modules/nuxt/dist/in
dex.mjs:4023:7)
  at async loadNuxt (/D:/Code/Directus/agency-os/node_modules/.pnpm/nuxt@3.10.3_eslint@8.56.0_typescript@5.3.3_vite@5.1.4_vue-tsc@1.8.27/node_modules/nuxt/dist/in
dex.mjs:4121:5)
  at async loadNuxt (/D:/Code/Directus/agency-os/node_modules/.pnpm/@nuxt+kit@3.10.3/node_modules/@nuxt/kit/dist/index.mjs:2570:19)
  at async Object.run (/D:/Code/Directus/agency-os/node_modules/.pnpm/nuxi@3.10.1/node_modules/nuxi/dist/chunks/prepare.mjs:53:18)
  at async runCommand$1 (/D:/Code/Directus/agency-os/node_modules/.pnpm/nuxi@3.10.1/node_modules/nuxi/dist/shared/nuxi.a9f3bca7.mjs:1648:16)
  at async runCommand$1 (/D:/Code/Directus/agency-os/node_modules/.pnpm/nuxi@3.10.1/node_modules/nuxi/dist/shared/nuxi.a9f3bca7.mjs:1639:11)
  at async runMain$1 (/D:/Code/Directus/agency-os/node_modules/.pnpm/nuxi@3.10.1/node_modules/nuxi/dist/shared/nuxi.a9f3bca7.mjs:1777:7)

 ERROR  fetch failed                                                                                                                                    17:27:11
 ELIFECYCLE  Command failed with exit code 1.
 ```

@bryantgillespie
Copy link
Contributor

The error you're seeing is not an pnpm issue.

After running pnpm i - Nuxt runs a post install script to generate a .nuxt directory and generate types. As part of that it loads modules as well. https://nuxt.com/docs/api/commands/prepare

The error you're seeing is coming from the Directus module included in template. The module tries to fetch redirects from the Directus instance. And it doesn't appear to be able to reach the Directus instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants