mdx-module icon indicating copy to clipboard operation
mdx-module copied to clipboard

Nuxtjs: npm install postinall throws error

Open andrelandgraf opened this issue 4 years ago • 3 comments

Describe the bug npm install --save-dev @nuxtjs/mdx throws error "postinstall": "yarn --cwd docs" spawn ENOENT, Failed at the @nuxtjs/[email protected] postinstall script.

To Reproduce Steps to reproduce the behavior:

  1. Within Nuxt.js project
  2. Run npm install --save-dev @nuxtjs/mdx
  3. See error: postinstall": "yarn --cwd docs" spawn ENOENT

Expected behavior npm package is installed successfully.

Desktop (please complete the following information):

  • OS: macOS Catalina
  • npm version: 6.14.9
  • node version: v14.15.3

Do I really need yarn to use this package? Any help would be appreciated! Thanks!

andrelandgraf avatar Jan 29 '21 16:01 andrelandgraf

I also faced with its issue. @andrelandgraf are you still stuck? look at this issue, works for me

kuza2010 avatar Feb 07 '21 18:02 kuza2010

Hey @kuza2010,

I worked around the issue by disabling the post-install script via npm install --ignore-scripts.

I hope that helps!

andrelandgraf avatar Feb 07 '21 19:02 andrelandgraf

It looks like the example / test locked in 0.0.1 instead of 1.0.0: https://github.com/nuxt-community/mdx-module/blob/master/docs/yarn.lock#L1692

I am unable to find a changelog to prove the difference in versions is meaningful, other than transitive dependency updates

ndesai avatar Feb 09 '21 18:02 ndesai