pnpm icon indicating copy to clipboard operation
pnpm copied to clipboard

ENOENT: no such file or directory, mkdir '/path'

Open huangjihua opened this issue 3 years ago • 3 comments

pnpm version: 7.4.1

Code to reproduce the issue:

image image
export PNPM_HOME="/Users/xxx/Library/pnpm"
export PATH="$PNPM_HOME:$PATH"

Expected behavior:

Actual behavior:

Additional information:

  • node -v prints: v16.13.0
  • Windows, macOS, or Linux?: macOS

huangjihua avatar Jul 01 '22 10:07 huangjihua

Same error here ☝️

  • Node: v18.4.0
  • pnpm: 7.5.0
  • OS: MacOS Monterey

buirkan avatar Jul 07 '22 14:07 buirkan

Same Error

Node: v16.6.0 pnpm: 7.6.0

thanveershah avatar Jul 26 '22 11:07 thanveershah

I can't work on it now because I don't have a mac.

zkochan avatar Jul 31 '22 01:07 zkochan

Not able to reproduce on my mac: image

lucasdiedrich avatar Oct 02 '22 18:10 lucasdiedrich

@zkochan FYI I am having the same issue on Windows 11. When I type 'pnpm i' or 'pnpm store path' or 'pnpm store prune' I always get this errror (with a different tmp file number):

ENOENT: no such file or directory, open 'C:\Users\sebas\Documents\heip-monorepo\_tmp_4580_fec72f06e7d137ca05b7e

Obiwarn avatar Oct 10 '22 14:10 Obiwarn

Same Error

Node: v18.12.1 pnpm: 7.16.1

Windows, macOS, or Linux?: macOS13.0.1

YTT-TTY avatar Nov 17 '22 06:11 YTT-TTY

Same Error

Node: v18.12.1 pnpm: 7.16.1

Windows, macOS, or Linux?: macOS13.0.1

After run pnpm config set store-dir ~/pnpm ,It works .

YTT-TTY avatar Nov 17 '22 06:11 YTT-TTY

Same Error Node: v18.12.1 pnpm: 7.16.1 Windows, macOS, or Linux?: macOS13.0.1

After run pnpm config set store-dir ~/pnpm ,It works .

It worked here too, thanks.

buirkan avatar Nov 17 '22 17:11 buirkan

After run pnpm config set store-dir ~/pnpm ,It works .

this also works for

Node: 18.6.0
pnpm: 8.6.12
macOS 14.0

Ycube avatar Aug 10 '23 03:08 Ycube

Please check your PNPM configuration to see if the store-dir specifies the correct unknown location of the .pnpm-store

我是mac,windows同样,正常来说是主动或者被动修改了store-dir才会导致此问题

hc-advokate avatar Sep 25 '23 06:09 hc-advokate