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

npm install fails on Windows #1361

Closed
wolfgang42 opened this issue Apr 21, 2016 · 4 comments
Closed

npm install fails on Windows #1361

wolfgang42 opened this issue Apr 21, 2016 · 4 comments

Comments

@wolfgang42
Copy link
Contributor

Windows interprets ./scripts/build.sh as a call to command . with the arguments /scripts and /build.sh:

> knex@0.10.0 build C:\Users\wfaust\Documents\Development\knex
> ./scripts/build.sh

'.' is not recognized as an internal or external command,
operable program or batch file.
@rhys-vdw rhys-vdw added the bug label May 7, 2016
@rhys-vdw
Copy link
Member

rhys-vdw commented May 7, 2016

Can you think of a workaround for this?

@wolfgang42
Copy link
Contributor Author

On second thought, the underlying problem is that this is a UNIX shell script, so the Windows CLI wouldn't understand it anyway. I suppose you could require mingw to be installed, and run it under bash; however that's another dependency.

The least hacky way I can think of to fix the problem is to convert it into build.js and run it under Node. Does that sound like a good solution to you?

@elhigu
Copy link
Member

elhigu commented May 13, 2016

@wolfgang42 sounds like a good idea. I've been using shelljs for that kind of stuff and been pretty happy with it 👍

wolfgang42 added a commit to wolfgang42/knex that referenced this issue May 16, 2016
This makes the build script cross-platform, closing knex#1361.
@wolfgang42
Copy link
Contributor Author

I've done the change in wolfgang42/knex; however I think I'm going to wait for #1416 to land before submitting a PR.

wolfgang42 pushed a commit to wolfgang42/knex that referenced this issue May 18, 2016
This makes the build script cross-platform, closing knex#1361.
wolfgang42 pushed a commit to wolfgang42/knex that referenced this issue May 18, 2016
This makes the build script cross-platform, closing knex#1361.
@wubzz wubzz closed this as completed Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants