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

Already on GitHub? Sign in to your account

Different behavior of prepublish script during link and install #4355

skrat opened this Issue Dec 20, 2013 · 2 comments


None yet
4 participants

skrat commented Dec 20, 2013

I'm building a package with coffee-script. I want to publish only compiled JS, so I follow what seems to be the common practice, with coffee compilation as a prepublish script.

I have src/ with .coffee sources, and lib/ with compiled JS. In package.json's scripts.prepublish I have coffee -o lib -c src. This works when running npm install, probably also with npm publish (I'm publishing). But when running sudo npm link it throws:

npm WARN cannot run in wd fp.engine@0.0.1 coffee -o lib -c src (wd=/home/skrat/Workspace/xxx/fp.engine)
/usr/lib/node_modules/fp.engine -> /home/skrat/Workspace/xxx/fp.engine

@iarna iarna added the support label Oct 3, 2014


smikes commented Dec 4, 2014

Is this still a problem for you? Can you check with the latest npm?

I don't think the behavior of lifecycle scripts has changed since you reported this, so it may still be an issue. Or you may have found a workaround -- if so, please let me know and I'll add it to my proto-knowledgebase.

We are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and open a new issue!)



othiym23 commented Dec 18, 2014

Closing as abandoned.

@othiym23 othiym23 closed this Dec 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment