GithubHelp home page GithubHelp logo

Comments (13)

0x1026 avatar 0x1026 commented on July 21, 2024 1

My question is why we use this:

"bin": {
"gitmoji-changelog": "./src/index.js"
},

Finished investigating, and came to the conclusion that it must be installed globally (npm i -g gitmoji-changelog) and requires an additional package called xsel, which can be installed with apt install xsel.

By this way, I'm getting another error:
image
image

from gitmoji-changelog.

sarangnx avatar sarangnx commented on July 21, 2024 1

Still facing this issue.

node: v18.17.1
npm: v9.6.7
gitmoji-changelog: v2.3.0

from gitmoji-changelog.

Tomas2D avatar Tomas2D commented on July 21, 2024

I have got the same problem πŸ‘

from gitmoji-changelog.

frinyvonnick avatar frinyvonnick commented on July 21, 2024

Hi @SturmB πŸ‘‹

Thank you for opening this issue πŸ™ I don't have npm 7.6 on my current computer to give it a try but I'll check it as soon as possible. Can you also share your node version, please?

from gitmoji-changelog.

Tomas2D avatar Tomas2D commented on July 21, 2024

I am getting this issue with the following versions:
Node: v16.6.0
NPM: 7.19.1

from gitmoji-changelog.

SturmB avatar SturmB commented on July 21, 2024

So, this appears to be a bit spotty when it comes to different node/npm versions. Some of them work fine while others throw that 'Syntax error: "(" unexpected' message. For example:

[βœ”] node 14.17.4 / npm 6.14.14 (latest LTS release)
[❌] node 15.11.0 / npm 7.6.0 (latest during my original post)
[βœ”] node 16.2.0 / npm 7.13.0
[❌] node 16.6.1 / npm 7.20.3 (latest as of this writing)

from gitmoji-changelog.

SerenModz21 avatar SerenModz21 commented on July 21, 2024

I also have a syntax error, but I don't think its the same one, I'm using node v16.6.1 with npm v7.21.0

image

from gitmoji-changelog.

0x1026 avatar 0x1026 commented on July 21, 2024

So, this appears to be a bit spotty when it comes to different node/npm versions. Some of them work fine while others throw that 'Syntax error: "(" unexpected' message. For example:

[βœ”] node 14.17.4 / npm 6.14.14 (latest LTS release)
[❌] node 15.11.0 / npm 7.6.0 (latest during my original post)
[βœ”] node 16.2.0 / npm 7.13.0
[❌] node 16.6.1 / npm 7.20.3 (latest as of this writing)

I just install node 16.2.0 / npm 7.13.0 and the error still persists

image

from gitmoji-changelog.

frinyvonnick avatar frinyvonnick commented on July 21, 2024

If someone is interested in investigating why it happens it could be really helpfulπŸ™

from gitmoji-changelog.

frinyvonnick avatar frinyvonnick commented on July 21, 2024

We use bin because this the way to declare a cli. Here is the documentation https://docs.npmjs.com/cli/v8/configuring-npm/package-json#bin

from gitmoji-changelog.

jpolo avatar jpolo commented on July 21, 2024

It seems the shebang #!/usr/bin/env node at the beginning of the bin file could solve the problem...

from gitmoji-changelog.

Tomas2D avatar Tomas2D commented on July 21, 2024

ping @frinyvonnick, I think that proposed solution from @jpolo is sufficient.

from gitmoji-changelog.

petrKavulok avatar petrKavulok commented on July 21, 2024

Was getting the same issue after updating node to v20.7.0, npm i -g gitmoji-changelog solved it for me.

from gitmoji-changelog.

Related Issues (20)

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.