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

Install fails (npm install barrelsby). #25

Closed
superamadeus opened this issue May 15, 2017 · 1 comment
Closed

Install fails (npm install barrelsby). #25

superamadeus opened this issue May 15, 2017 · 1 comment
Assignees

Comments

@superamadeus
Copy link

Installing this module via NPM fails.

MacBook-Pro:plo-canvas user$ npm install barrelsby
npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/Cellar/node/7.10.0/bin/node" "/usr/local/bin/npm" "install" "barrelsby"
npm ERR! node v7.10.0
npm ERR! npm  v4.2.0
npm ERR! path /Users/user/Developer/project/node_modules/barrelsby/bin/index.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/user/Developer/project/node_modules/barrelsby/bin/index.js'
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/user/Developer/project/node_modules/barrelsby/bin/index.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.

I don't know for sure, but from what I've gathered, NPM is using your .gitignore file as the .npmignore file. You should use a separate .npmignore file.

@bencoveney
Copy link
Owner

Thanks for the error report. I believe the issue was caused by the files property of the package.json, which is yet another way to include/exclude files from being published.

This was definitely a blind spot in my testing! In future I think I can catch this during CI by using npm install . -g rather than npm link.

@ghost ghost removed the in progress label May 15, 2017
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

2 participants