nuxt-community / mdx-module

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

Nuxtjs: npm install postinall throws error #28

Open andrelandgraf opened 3 years ago

andrelandgraf commented 3 years ago

Describe the bug npm install --save-dev @nuxtjs/mdx throws error "postinstall": "yarn --cwd docs" spawn ENOENT, Failed at the @nuxtjs/mdx@1.0.0 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):

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

kuza2010 commented 3 years ago

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

andrelandgraf commented 3 years ago

Hey @kuza2010,

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

I hope that helps!

ndesai commented 3 years ago

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