2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Next.jsでError: EPERM: operation not permitted発生時の対処法

Posted at

操作内容

npm run build
package.json
{
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start"
  },
  "dependencies": {
    "buffer": "^6.0.3",
    "next": "latest",
    "react": "17.0.2",
    "react-dom": "17.0.2"
  }
}

エラー内容

Error: EPERM: operation not permitted,

原因

以下コマンドでローカルでサーバを起動していたため

npm run dev

対処法

ローカルサーバを止めて、再度以下を実行する

npm run build
2
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?