nuxt-community / mdx-module

MDX module for Nuxt 2
https://mdx.nuxtjs.org
MIT License
47 stars 7 forks source link

"yarn add" error spawn E2BIG #21

Open mpalpha opened 3 years ago

mpalpha commented 3 years ago

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):

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 commented 3 years ago

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 commented 3 years ago

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