-
-
Notifications
You must be signed in to change notification settings - Fork 525
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
Unable to find the gulp binary #138
Comments
tkrotoff
added a commit
to tkrotoff/cli
that referenced
this issue
Jun 2, 2015
Hi. We noticed that issue as well at some point. It might be an option to use the resolve module https://github.com/substack/node-resolve. Need to think about it |
Merged
codetriage-readme-bot
pushed a commit
to codetriage-readme-bot/cli
that referenced
this issue
Jun 5, 2019
If the OS is windows, convert line endings from LF to CRLF when saving
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a structure like this:
Debugging https://github.com/sequelize/cli/blob/v1.7.0/bin/sequelize:
var gulp = path.resolve(__dirname, '..', 'node_modules', 'gulp', 'bin', 'gulp.js')
generates '/node_modules/sequelize-cli/node_modules/gulp/bin/gulp.js' with __dirname being '/node_modules/sequelize-cli/bin'.gulp = path.resolve(process.cwd(), 'node_modules', 'gulp', 'bin', 'gulp.js')
generates '/server/node_modules/gulp/bin/gulp.js' with process.cwd() being '/server'.FYI my PATH contains /node_modules/.bin
Edit:
var gulp = path.resolve(__dirname, '..', '..', 'gulp', 'bin', 'gulp.js')
works in this case and generates: '/node_modules/gulp/bin/gulp.js'The text was updated successfully, but these errors were encountered: