Skip to content

"yarn add" error spawn E2BIG #21

Open
@mpalpha

Description

@mpalpha

Describe the bug
@nuxtjs/mdx does not install via yarn

To Reproduce
Steps to reproduce the behavior:

  1. Go to your project in terminal.
  2. type 'yarn add --dev @nuxtjs/mdx' and press enter
  3. wait.
  4. See error

Expected behavior
module to install without error.

Screenshots
none.

Desktop (please complete the following information):

  • OS: darwin x64
  • Browser [e.g. chrome, safari]
  • Version catalina

Additional context
yarn-error.log
Arguments:
/Users/*****/.nvm/versions/node/v12.18.4/bin/node /usr/local/Cellar/yarn/1.22.10/libexec/bin/yarn.js --cwd docs

PATH:
...

Yarn version:
1.22.10

Node version:
12.18.4

Platform:
darwin x64

Trace:
Error: spawn E2BIG
at ChildProcess.spawn (internal/child_process.js:407:11)
at Object.spawn (child_process.js:548:9)
at /usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:25829:24
at new Promise ()
at new F (/usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:5301:28)
at /usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:25828:12
at run (/usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:43133:7)
at BlockingQueue.maybePushConcurrencyQueue (/usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:43148:7)
at BlockingQueue.shift (/usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:43143:10)
at /usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:43087:15

package.json
"dependencies": {
"@nuxt/content": "^1.9.0",
"@nuxt/content-theme-docs": "^0.6.0",
"@nuxt/types": "^2.14.6",
"@nuxtjs/color-mode": "^1.1.1",
"@nuxtjs/google-fonts": "^1.0.3",
"@nuxtjs/pwa": "^3.0.2",
"@nuxtjs/tailwindcss": "^3.1.0",
"@tailwindcss/typography": "^0.2.0",
"axios": "^0.20.0",
"clipboard": "^2.0.6",
"defu": "^3.1.0",
"lodash.groupby": "^4.6.0",
"lodash.sortby": "^4.7.0",
"marked": "^1.2.0",
"nuxt": "^2.14.6",
"nuxt-i18n": "^6.15.1",
"postcss-import": "^12.0.1",
"postcss-preset-env": "^6.7.0",
"postcss-selector-parser": "^6.0.4",
"prism-themes": "^1.4.0",
"vue-scrollactive": "^0.9.3"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions