Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Nuxtjs: npm install postinall throws error #28

Open
andrelandgraf opened this issue Jan 29, 2021 · 3 comments
Open

Nuxtjs: npm install postinall throws error #28

andrelandgraf opened this issue Jan 29, 2021 · 3 comments

Comments

@andrelandgraf
Copy link

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

  • 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!

@kuza2010
Copy link

kuza2010 commented Feb 7, 2021

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

@andrelandgraf
Copy link
Author

Hey @kuza2010,

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

I hope that helps!

@ndesai
Copy link

ndesai commented Feb 9, 2021

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants