Skip to content
New issue

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

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

Already on GitHub? Sign in 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/[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!

@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

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

No branches or pull requests

3 participants