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

npm lifecycle scripts such as 'prepare' not run when install from git repo #321

Closed
darcyclarke opened this issue Nov 8, 2019 · 1 comment
Labels
Bug thing that needs fixing

Comments

@darcyclarke
Copy link
Contributor

  Original bug ticket: [https://npm.community/t/10253](https://npm.community/t/10253)
  Originally filed: 2019-09-26T03:07:35.218Z
@ghost
Copy link

ghost commented Feb 6, 2020

We had the same problem but it was caused by a missing .npmignore. We have a .gitignore file which excludes dist from Git (So that transpiled files are not included). Adding a blank .npmignore file made the files created by prepare remain, because NPM uses .gitignore when .npmignore is missing.

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

No branches or pull requests

1 participant