LoginSignup
0
0

pnpm create next-appしたら文句言われた

Posted at

dockerでnextのプロジェクトを作ろうとpnpm create next-appしたら

$ pnpm create next-app
.local/share/pnpm/store/v3/tmp/dlx-14128 |   +1 +
.local/share/pnpm/store/v3/tmp/dlx-14128 | Progress: resolved 1, reused 1, downloaded 0, added 1, done

Aborting installation.
Unexpected error. Please report it as a bug:
 Error: EACCES: permission denied, mkdir '/home/user/.config/create-next-app-nodejs'
    at Object.mkdirSync (node:fs:1380:26)
    at Conf._ensureDirectory (/home/user/.local/share/pnpm/store/v3/tmp/dlx-14128/node_modules/.pnpm/create-next-app@14.0.4/node_modules/create-next-app/dist/index.js:8:81462)
    at get store [as store] (/home/user/.local/share/pnpm/store/v3/tmp/dlx-14128/node_modules/.pnpm/create-next-app@14.0.4/node_modules/create-next-app/dist/index.js:8:80100)
    at new Conf (/home/user/.local/share/pnpm/store/v3/tmp/dlx-14128/node_modules/.pnpm/create-next-app@14.0.4/node_modules/create-next-app/dist/index.js:8:77755)
    at run (/home/user/.local/share/pnpm/store/v3/tmp/dlx-14128/node_modules/.pnpm/create-next-app@14.0.4/node_modules/create-next-app/dist/index.js:74:46748)
    at 4282 (/home/user/.local/share/pnpm/store/v3/tmp/dlx-14128/node_modules/.pnpm/create-next-app@14.0.4/node_modules/create-next-app/dist/index.js:74:52233)
    at __nccwpck_require__ (/home/user/.local/share/pnpm/store/v3/tmp/dlx-14128/node_modules/.pnpm/create-next-app@14.0.4/node_modules/create-next-app/dist/index.js:74:59961)
    at /home/user/.local/share/pnpm/store/v3/tmp/dlx-14128/node_modules/.pnpm/create-next-app@14.0.4/node_modules/create-next-app/dist/index.js:74:60825
    at Object.<anonymous> (/home/user/.local/share/pnpm/store/v3/tmp/dlx-14128/node_modules/.pnpm/create-next-app@14.0.4/node_modules/create-next-app/dist/index.js:74:60869)
    at Module._compile (node:internal/modules/cjs/loader:1376:14) {
  errno: -13,
  code: 'EACCES',
  syscall: 'mkdir',
  path: '/home/user/.config/create-next-app-nodejs'
}

みたいな文句言いだした。

mkdir ~/.config/create-next-app-nodejs
sudo chown -R $(whoami) ~/.config/create-next-app-nodejs

これで黙らせましょう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0