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 install gives error #2

Closed
kardeepak77 opened this issue Feb 22, 2024 · 4 comments
Closed

pnpm install gives error #2

kardeepak77 opened this issue Feb 22, 2024 · 4 comments
Labels

Comments

@kardeepak77
Copy link

kardeepak77 commented Feb 22, 2024

Steps to reproduce

  1. Download 1.0 version on windows
  2. Run pnpm install

What is expected?

Installation to be successful without error.

What is actually happening?

materio-nuxtjs-admin-template-free@1.0.0 postinstall C:\Project\SucessManagement\Tutorials\materio-vuetify-nuxtjs-admin-template-free-1.0.0\typescript-version
nuxt prepare && npm run build:icons

[12:10:23 PM] ERROR Cannot find package 'C:\Project\SucessManagement\Tutorials\materio-vuetify-nuxtjs-admin-template-free-1.0.0\typescript-version\node_modules.pnpm\nuxt@3.9.1_@types+node@20.10.6_eslint@8.56.0_sass@1.69.7_stylelint@15.11.0_typescript@5.3.3_vite@5.0.10\node_modules\esbuild\package.json' imported from C:\Project\SucessManagement\Tutorials\materio-vuetify-nuxtjs-admin-template-free-1.0.0\typescript-version\node_modules.pnpm\nuxt@3.9.1_@types+node@20.10.6_eslint@8.56.0_sass@1.69.7_stylelint@15.11.0_typescript@5.3.3_vite@5.0.10\node_modules\nuxt\dist\index.mjs
Did you mean to import esbuild@0.19.11/node_modules/esbuild/lib/main.js?

Did you mean to import esbuild@0.19.11/node_modules/esbuild/lib/main.js?
at legacyMainResolve (node:internal/modules/esm/resolve:214:26)
at packageResolve (node:internal/modules/esm/resolve:840:14)
at moduleResolve (node:internal/modules/esm/resolve:910:20)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap. (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)

[12:10:23 PM] ERROR Cannot find package 'C:\Project\SucessManagement\Tutorials\materio-vuetify-nuxtjs-admin-template-free-1.0.0\typescript-version\node_modules.pnpm\nuxt@3.9.1_@types+node@20.10.6_eslint@8.56.0_sass@1.69.7_stylelint@15.11.0_typescript@5.3.3_vite@5.0.10\node_modules\esbuild\package.json' imported from C:\Project\SucessManagement\Tutorials\materio-vuetify-nuxtjs-admin-template-free-1.0.0\typescript-version\node_modules.pnpm\nuxt@3.9.1_@types+node@20.10.6_eslint@8.56.0_sass@1.69.7_stylelint@15.11.0_typescript@5.3.3_vite@5.0.10\node_modules\nuxt\dist\index.mjs
Did you mean to import esbuild@0.19.11/node_modules/esbuild/lib/main.js?

 ELIFECYCLE  Command failed with exit code 1.

Additional data

@kardeepak77 kardeepak77 added bug Something isn't working support labels Feb 22, 2024
@DeepKumbhare85
Copy link
Member

Hello @kardeepak77,

Thank you for getting in touch with us.

We've cloned the repository on a Windows system and proceeded with the installation. We encountered no issues during the execution of pnpm install. The installation process was remarkably smooth. I kindly urge you to give it another try with a fresh installation.

If you still face issue, please let me know.

Copy link

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you for raising the concern.

@github-actions github-actions bot added the stale label Mar 26, 2024
Copy link

github-actions bot commented Apr 2, 2024

This issue has been automatically marked as closed because it has no recent activity.

@github-actions github-actions bot closed this as completed Apr 2, 2024
@brc-dd
Copy link

brc-dd commented Jan 9, 2025

This happens when the path is too long. Windows has a 260 character path limit. Most of the workarounds don't work. You can use npm/yarn instead or pnpm with node-linker=hoisted, or just use a shorter/mounted directory. In newer versions of node.js these issues don't appear if you've LongPathsEnabled=1 set in registry.

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

No branches or pull requests

3 participants