Comments (13)
My question is why we use this:
gitmoji-changelog/packages/gitmoji-changelog-cli/package.json
Lines 20 to 22 in 0522b87
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:
from gitmoji-changelog.
Still facing this issue.
node: v18.17.1
npm: v9.6.7
gitmoji-changelog: v2.3.0
from gitmoji-changelog.
I have got the same problem π
from gitmoji-changelog.
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.
I am getting this issue with the following versions:
Node: v16.6.0
NPM: 7.19.1
from gitmoji-changelog.
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.
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
from gitmoji-changelog.
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
from gitmoji-changelog.
If someone is interested in investigating why it happens it could be really helpfulπ
from gitmoji-changelog.
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.
It seems the shebang #!/usr/bin/env node
at the beginning of the bin file could solve the problem...
from gitmoji-changelog.
ping @frinyvonnick, I think that proposed solution from @jpolo is sufficient.
from gitmoji-changelog.
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)
- Error when running `npx gitmoji-changelog init` HOT 2
- Questions About Workflow HOT 2
- Error: Cannot retrieve configuration for preset node. HOT 1
- outdated packages has 3 known vulnerabilities. HOT 2
- Error: Whoops, something went wrong HOT 1
- Syntax error HOT 1
- E2E tests does not pass using node 14
- Dependencies versions are not up to date in gitmoji-changelog-cli
- Is it possible to prevent a section to be createad in the changelog? HOT 3
- [feature] Shell completions
- Docs are down HOT 1
- [Feature] Custom markdown template
- [Feature] Support parsing commit message body
- [feature] pre-commit
- Remove Merge commits from changelog
- π Support cargo workspace HOT 1
- Run on windows using pnmp dlx generates error
- Unable to run: ERROR:node_bindings.cc(303)
- Integrate with semantic-release plugin
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 gitmoji-changelog.