Coder Social home page Coder Social logo

Comments (9)

theasp avatar theasp commented on June 15, 2024 1

@Jan-Jan you can use flip -u or dos2unix to fix it

from postgrator-cli.

MattiLehtinen avatar MattiLehtinen commented on June 15, 2024

@Jan-Jan Can you test with latest version if it fixes your problem?

from postgrator-cli.

jagregory avatar jagregory commented on June 15, 2024

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.

mitskevich avatar mitskevich commented on June 15, 2024

I have the same issue on Linux with postgrator-0.2.0. Works when I install from repository.

from postgrator-cli.

Kostanos avatar Kostanos commented on June 15, 2024

Same issue here, running on Docker node:8-alpine image after npm install -g postgrator-cli

Any idea?

from postgrator-cli.

Kostanos avatar Kostanos commented on June 15, 2024

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.

Kostanos avatar Kostanos commented on June 15, 2024
dos2unix /usr/local/bin/postgrator

fixed the issue as mentioned @theasp

thank you

from postgrator-cli.

MattiLehtinen avatar MattiLehtinen commented on June 15, 2024

Most probably fixed with commit f1dfd7e

from postgrator-cli.

MattiLehtinen avatar MattiLehtinen commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.