Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"yarn add" error spawn E2BIG #21

Open
mpalpha opened this issue Oct 13, 2020 · 2 comments
Open

"yarn add" error spawn E2BIG #21

mpalpha opened this issue Oct 13, 2020 · 2 comments

Comments

@mpalpha
Copy link

mpalpha commented Oct 13, 2020

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"
}

@mpalpha
Copy link
Author

mpalpha commented Oct 13, 2020

npm install doesn't work either, as it is stuck in a loop.

$ yarn --cwd docs
yarn install v1.22.10
[1/4] 🔍  Resolving packages...
success Already up-to-date.
$ yarn --cwd docs
yarn install v1.22.10
[1/4] 🔍  Resolving packages...
success Already up-to-date.
...
...
...

@nobalmohan
Copy link

nobalmohan commented Oct 27, 2020

I faced this issue as well. I manually added ""@nuxtjs/mdx": "0.0.1"," to package.json and did a "npm install". It's working now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants