Issues with CoffeeScript Compilation During npm Install

npm install fails when a private module relying on compiled CoffeeScript can’t find its build script. For example:

runBuild = './node_modules/new-coffee/bin/trigger'

Any ideas to resolve this?

The issue I encountered was similar to what your module is experiencing. In my case, the problem was due to the build script not being correctly referenced relative to the project root or node_modules directory. Resolving it involved checking the path used in the build script to ensure it was dynamically constructed or updated to reflect the correct location. I also found that ensuring all dependencies were installed in the proper sequence during the install process could prevent this problem from recurring, making the compilation process seamless.

hey, i once faced a simmilar issue. try adding a preinstall script in your package.json to compile the coffee files, so the build script is ready when needed. also check if an absolute path works better than a relative one. good luck!