这是indexloc提供的服务,不要输入任何密码
Skip to content

Vercel: Trying to install "turbo-linux-64" using npm EACCES: permission denied #390

@abusada

Description

@abusada

What version of Turborepo are you using?

1.0.19

Describe the Bug

I'm following this guide https://vercel.com/docs/concepts/git/monorepos#turborepo
Trying to deploy an app on vercel, the app is inside a monorepo that is generated with turbo cli.

I have changed the BUILD COMMAND to:

cd ../.. && npx turbo run build --scope=@scope/app --includeDependencies --no-deps

And I get the following output:
screenshot- 2021-12-21 at 10 04 49@2x

Expected Behavior

The expected behavior is of course that following this guide should simply work.

To Reproduce

  • Include source files outside of the Root Directory in the Build Step is checked:
    screenshot- 2021-12-21 at 10 12 21@2x

  • packae.json in the root directory:

{
    "version": "0.0.0",
    "private": true,
    "workspaces": [
      "apps/*",
      "packages/*"
    ],
    "scripts": {
      "build": "turbo run build",
      "dev": "turbo run dev --parallel",
      "lint": "turbo run lint",
      "format": "prettier --write \"**/*.{ts,tsx,md}\""
    },
    "devDependencies": {
      "prettier": "^2.5.1",
      "turbo": "latest"
    },
    "turbo": {
      "baseBranch": "origin/main",
      "npmClient": "npm",
      "pipeline": {
        "build": {
          "dependsOn": [
            "^build"
          ],
          "outputs": [
            "dist/**",
            ".next/**"
          ]
        },
        "lint": {
          "outputs": []
        },
        "dev": {
          "cache": false
        }
      }
    },
    "engines": {
      "npm": ">=7.0.0",
      "node": ">=14.0.0"
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions