mdx-module
mdx-module copied to clipboard
Nuxtjs: npm install postinall throws error
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:
- Within Nuxt.js project
- Run
npm install --save-dev @nuxtjs/mdx
- 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!
I also faced with its issue. @andrelandgraf are you still stuck? look at this issue, works for me
Hey @kuza2010,
I worked around the issue by disabling the post-install script via npm install --ignore-scripts
.
I hope that helps!
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