Comments (9)
@Jan-Jan you can use flip -u
or dos2unix
to fix it
from postgrator-cli.
@Jan-Jan Can you test with latest version if it fixes your problem?
from postgrator-cli.
I'm seeing this issue too with the latest version.
It seems to be something to do with the npm package publishing. When I install from npm, I have the issue; but when I install from the repo (e.g. npm install https://github.com/MattiLehtinen/postgrator-cli.git) it works fine.
from postgrator-cli.
I have the same issue on Linux with postgrator-0.2.0
. Works when I install from repository.
from postgrator-cli.
Same issue here, running on Docker node:8-alpine
image after npm install -g postgrator-cli
Any idea?
from postgrator-cli.
It looks like some OS related issue, as running with command: node /usr/local/bin/postgrator
it works very well. I compared the head/permissions with other npm apps like nodemon for example, and they are exactly the same as in postgrator. I even commented out all code, and left there simple console.log(..) line
still the same error.
Any other idea?
from postgrator-cli.
dos2unix /usr/local/bin/postgrator
fixed the issue as mentioned @theasp
thank you
from postgrator-cli.
Most probably fixed with commit f1dfd7e
from postgrator-cli.
Thanks everyone for reporting!
It was npm packaging problem (npm/npm#12371). 0.2.2 has LF line endings and it should work as expected.
from postgrator-cli.
Related Issues (18)
- Provide connectionstring/dsn HOT 3
- Postgrator-cli not detecting changes to sql files HOT 1
- Add support for output from migration scripts
- support pg@8? HOT 1
- Add option for single up and down migrations HOT 1
- Failing with no error on Node v14.x HOT 1
- Node 14 support - ERR_INVALID_ARG_TYPE error HOT 3
- zsh: command not found: postgrator HOT 1
- CLI Warnings HOT 3
- Broken when running cli args with latest pg HOT 1
- Can't use absolute directory path in -m option HOT 1
- Add support to Postgrator 3 features
- Default env vars? HOT 4
- Error: No migration files found from C:\dev\prototype\sqlmigrations\migrations HOT 2
- Add support for anvironment variables HOT 3
- command for generating do and undo files
- CLI does not accept a mixture of config file and command line options HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgrator-cli.