mdx-module
mdx-module copied to clipboard
"yarn add" error spawn E2BIG
Describe the bug @nuxtjs/mdx does not install via yarn
To Reproduce Steps to reproduce the behavior:
- Go to your project in terminal.
- type 'yarn add --dev @nuxtjs/mdx' and press enter
- wait.
- 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 (
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" }
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.
...
...
...
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