Need help running the Nextjs Commerce template locally
Unanswered
Narrow-barred Spanish mackerel posted this in #help-forum
Narrow-barred Spanish mackerelOP
I'm trying to clone the Commerce template form github, and when I run
this is the first time I get this kind of error, & I don't really know what to do.
Help would be much appreciated!
pnpm install it throws this error.node_modules/.pnpm/@vercel+git-hooks@1.0.0/node_modules/@vercel/git-hooks: Running install script, failed in 452ms
.../node_modules/@vercel/git-hooks install$ node ./install.js
│ △ @vercel/git-hooks: installing base hook to \code-playground\commerce\.git\hooks
│ node:internal/fs/utils:350
│ throw err;
│ ^
│ Error: EPERM: operation not permitted, symlink './_do_hook.cjs' -> '\code-playground\commerce\.git\ho…
│ at Object.symlinkSync (node:fs:1816:3)
│ at installHook (\code-playground\commerce\node_modules\.pnpm\@vercel+git-hooks@1.0.0\node_modules…
│ at Array.forEach (<anonymous>)
│ at Object.<anonymous> (\code-playground\commerce\node_modules\.pnpm\@vercel+git-hooks@1.0.0\node_…
│ at Module._compile (node:internal/modules/cjs/loader:1256:14)
│ at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
│ at Module.load (node:internal/modules/cjs/loader:1119:32)
│ at Module._load (node:internal/modules/cjs/loader:960:12)
│ at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
│ at node:internal/main/run_main_module:23:47 {
│ errno: -4048,
│ syscall: 'symlink',
│ code: 'EPERM',
│ path: './_do_hook.cjs',
│ dest: '\\code-playground\\commerce\\.git\\hooks\\applypatch-msg'
│ }
│ Node.js v18.17.1
└─ Failed in 453ms at \code-playground\commerce\node_modules\.pnpm\@vercel+git-hooks@1.0.0\node_modules\@vercel\git-hooks
 ELIFECYCLE  Command failed with exit code 1.this is the first time I get this kind of error, & I don't really know what to do.
Help would be much appreciated!