node-slack-events-api
node-slack-events-api copied to clipboard
npm install fails because of missing dist files
Description
npm install fails because of missing dist files
What type of issue is this? (place an x in one of the [ ])
- [x] bug
- [ ] enhancement (feature request)
- [ ] question
- [ ] documentation related
- [ ] testing related
- [ ] discussion
Requirements
- [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
- [x] I've read and agree to the Code of Conduct.
- [x] I've searched for any related issues and avoided creating a duplicate issue.
Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
slack-events version: v1.0.0-beta.1 node version: v7 OS version(s): macOS v10.12.2
Steps to reproduce:
npm install --save @slack/events-api@beta
Expected result:
successful installation
Actual result:
ankur:test-node-events-api/ $ npm install --save @slack/events-api@beta
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! Darwin 16.3.0
npm ERR! argv "/Users/ankur/.nvm/versions/node/v7.2.0/bin/node" "/Users/ankur/.nvm/versions/node/v7.2.0/bin/npm" "install" "--save" "@slack/events-api@beta"
npm ERR! node v7.2.0
npm ERR! npm v4.0.2
npm ERR! path /Users/ankur/Developer/play/test-node-events-api/node_modules/@slack/events-api/dist/verify.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/ankur/Developer/play/test-node-events-api/node_modules/@slack/events-api/dist/verify.js'
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/ankur/Developer/play/test-node-events-api/node_modules/@slack/events-api/dist/verify.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /Users/ankur/Developer/play/test-node-events-api/npm-debug.log
the issue is that the dist/ directory isn't in the distribution tarball, since its listed in .gitignore. the solution is to commit an empty .npmignore file to override the inheritence of .gitignore.