misskey icon indicating copy to clipboard operation
misskey copied to clipboard

Dev Containerのpnpmが微妙な感じがする

Open tamaina opened this issue 2 years ago • 3 comments

/workspace/.pnpm-storeにpnpm-storeが作られる
(.gitignoreしていないので正しい挙動ではない)

かつ、

 WARN  GET https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz error (ECONNRESET). Will retry in 10 seconds. 2 retries left.
 ENOENT  ENOENT: no such file or directory, copyfile '/workspace/.pnpm-store/v3/files/ff/ea3297aa9d8394d9248e420fe886ab45a790d8a7f50c6e95fffaccc3915be93821234035b2dd163de6ee3b4863ce7fdbdd20d11d9a763743a0f57b66fda856' -> '/workspace/node_modules/.pnpm/github.com+misskey-dev+summaly@51f3870e1ff5e0b22102e804112b10cb72f3c494/node_modules/_tmp_623_c605cc4538f9378a25f484ef9a33fee4/_tmp_623_261df4bc15c62436058e5238b273eff5/built/index.d.ts'mjs.org/@swc/core-linux-arm64-gnu/1.3.36: 6.25 MB/13.7 MB

pnpm: ENOENT: no such file or directory, copyfile '/workspace/.pnpm-store/v3/files/ff/ea3297aa9d8394d9248e420fe886ab45a790d8a7f50c6e95fffaccc3915be93821234035b2dd163de6ee3b4863ce7fdbdd20d11d9a763743a0f57b66fda856' -> '/workspace/node_modules/.pnpm/github.com+misskey-dev+summaly@51f3870e1ff5e0b22102e804112b10cb72f3c494/node_modules/_tmp_623_c605cc4538f9378a25f484ef9a33fee4/_tmp_623_261df4bc15c62436058e5238b273eff5/built/index.d.ts'
Progress: resolved 1748, reused 0, downloaded 1270, added 1268
Downloading registry.npmjs.org/typescript/4.9.5: 4.73 MB/11.6 MB
Downloading registry.npmjs.org/@tensorflow/tfjs-core/4.2.0: 4.44 MB/6.69 MB
Downloading registry.npmjs.org/@swc/core-linux-arm64-gnu/1.3.36: 6.25 MB/13.7 MB
Downloading registry.npmjs.org/@swc/core-linux-arm64-musl/1.3.36: 6.53 MB/13.4 MB
Downloading registry.npmjs.org/@tensorflow/tfjs/4.2.0: 2.67 MB/29.1 MB
Downloading registry.npmjs.org/@tensorflow/tfjs-layers/4.2.0: 2.81 MB/5.93 MB
[308800 ms] postCreateCommand failed with exit code 1. Skipping any further user-provided commands.
Done. Press any key to close the terminal.

と言ってpostCreateCommand failed

with macOS, Docker Desktop

tamaina avatar Mar 04 '23 14:03 tamaina

どうして.pnpm-storeなんだろうか(v3って書いてあるのでv3がインストールされてしまっている?

tamaina avatar Mar 04 '23 15:03 tamaina

The store should be always on the same disk on which installation is happening, so there will be one store per disk. If there is a home directory on the current disk, then the store is created inside it. If there is no home on the disk, then the store is created at the root of the filesystem. For example, if installation is happening on a filesystem mounted at /mnt, then the store will be created at /mnt/.pnpm-store. The same goes for Windows systems.

https://pnpm.io/npmrc#node-modules-settings

これか

tamaina avatar Mar 04 '23 15:03 tamaina

.pnpm-storeはgitignoreで解決するとして、 ENOENT: no such file or directoryはどうにもと言う感じが

tamaina avatar Mar 04 '23 16:03 tamaina