question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't install with pnpm

See original GitHub issue
node_modules/.pnpm/simple-git-hooks@2.2.0/node_modules/simple-git-hooks: Running postinstall script, failed in 126ms
.../node_modules/simple-git-hooks postinstall$ node ./postinstall.js
│ internal/fs/utils.js:307
│     throw err;
│     ^
│ Error: ENOENT: no such file or directory, stat 'D:\Projects\vue-promise-dialogs\node_modules\.pnpm\simple-git-hooks@2.2.0\package.json'
│     at Object.statSync (fs.js:1086:3)
│     at _getPackageJson (D:\Projects\vue-promise-dialogs\node_modules\.pnpm\simple-git-hooks@2.2.0\node_modules\simple-git-hooks\simple-git-hooks.js:140:13)
│     at checkSimpleGitHooksInDependencies (D:\Projects\vue-promise-dialogs\node_modules\.pnpm\simple-git-hooks@2.2.0\node_modules\simple-git-hooks\simple-git-hooks
│     at postinstall (D:\Projects\vue-promise-dialogs\node_modules\.pnpm\simple-git-hooks@2.2.0\node_modules\simple-git-hooks\postinstall.js:15:9)
│     at Object.<anonymous> (D:\Projects\vue-promise-dialogs\node_modules\.pnpm\simple-git-hooks@2.2.0\node_modules\simple-git-hooks\postinstall.js:24:1)
│     at Module._compile (internal/modules/cjs/loader.js:1063:30)
│     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
│     at Module.load (internal/modules/cjs/loader.js:928:32)
│     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
│     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
│   errno: -4058,
│   syscall: 'stat',
│   code: 'ENOENT',
│   path: 'D:\\Projects\\vue-promise-dialogs\\node_modules\\.pnpm\\simple-git-hooks@2.2.0\\package.json'
│ }
└─ Failed in 127ms
 ERROR  Command failed with exit code 1.
 ```

pnpm version: 5.18.7

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Djalercommented, Apr 5, 2021

So, will you release this fix?

1reaction
Djalercommented, Apr 3, 2021

I tried this, but pnpm installs local tar archives in different way

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation | pnpm
You may install pnpm even if you don't have Node.js installed, using the following scripts. ... However, it probably won't be the latest...
Read more >
npm install works, pnpm install fails · Issue #2283 - GitHub
Both npm and pnpm commands in the PR description result in getting stuck on the installation step for me, having to exit with...
Read more >
How to warn or error when using "npm install" - Stack Overflow
This can be done with packages such as only-allow, only-allow-engines, or only-pnpm. These generally work either via a preinstall script or ...
Read more >
pnpm/pnpm - Gitter
Hello, it looks like node-gyp does not work with pnpm@5 due to request/uuid ... pnpm/grpc@1.24.2/node_modules/grpc install: gyp ERR! stack Error ...
Read more >
Pnpm does not add dependencies - Glitch Support
I cannot seem to get dependencies to load into my package.json file automatically. By automatically, I mean that when I install the package...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found