book000 / twitter-rss

🔍 Generate RSS Feed from Twitter Search
https://book000.github.io/twitter-rss/
MIT License
8 stars 4 forks source link

issues with yarn run add/build/dev : how to make it work? #1056

Closed raphael10-collab closed 1 month ago

raphael10-collab commented 4 months ago
raphy@raohy:~$ git clone https://github.com/book000/twitter-rss.git
Cloning into 'twitter-rss'...
remote: Enumerating objects: 4295, done.
remote: Counting objects: 100% (294/294), done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 4295 (delta 211), reused 274 (delta 196), pack-reused 4001
Receiving objects: 100% (4295/4295), 1.57 MiB | 1.48 MiB/s, done.
Resolving deltas: 100% (3226/3226), done.

raphy@raohy:~/twitter-rss$ yarn add
yarn add v1.22.19
warning ../package.json: No license field
error Missing list of packages to add to your project.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

raphy@raohy:~/twitter-rss$ yarn run build
yarn run v1.22.19
warning ../package.json: No license field
$ ts-node -r tsconfig-paths/register ./src/main.ts
/bin/sh: 1: ts-node: Permission denied
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

raphy@raohy:~/twitter-rss$ yarn run dev
yarn run v1.22.19
warning ../package.json: No license field
$ ts-node-dev -r tsconfig-paths/register ./src/main.ts
/bin/sh: 1: ts-node-dev: Permission denied
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

raphy@raohy:~/twitter-rss$ yarn --version
1.22.19

raphy@raohy:~/twitter-rss$ node --version
v20.12.2

raphy@raohy:~/twitter-rss$ npm version
{
  'twitter-rss': '2.0.0',
  npm: '10.5.0',
  node: '20.12.2',
  acorn: '8.11.3',
  ada: '2.7.6',
  ares: '1.27.0',
  base64: '0.5.2',
  brotli: '1.1.0',
  cjs_module_lexer: '1.2.2',
  cldr: '44.1',
  icu: '74.2',
  llhttp: '8.1.2',
  modules: '115',
  napi: '9',
  nghttp2: '1.60.0',
  nghttp3: '0.7.0',
  ngtcp2: '0.8.1',
  openssl: '3.0.13+quic',
  simdutf: '4.0.8',
  tz: '2024a',
  undici: '5.28.4',
  unicode: '15.1',
  uv: '1.46.0',
  uvwasi: '0.0.20',
  v8: '11.3.244.8-node.19',
  zlib: '1.3.0.1-motley-40e35a7'
}

OS: Ubuntu 23.10

How to make it work?

book000 commented 1 month ago

Hi @raphael10-collab, Sorry for the late reply.

Now, your executed command "yarn add" appears to be incorrect. Shouldn't the correct command be "yarn install"?

The following is an example of how the "yarn build" command works at a minimum on Ubuntu in a Docker environment. demo (generated by asciinema https://asciinema.org/a/Vp2pHjLlmPD1YjCAPNgt1WsUY)

In fact, you will need a virtual display such as xvfb or chromium to get it to work from here. It is too much to explain here, so please do a Google search or refer to the Dockerfile.

book000 commented 1 month ago

Hey @raphael10-collab, Do you have any additional questions about this ticket? If not, I would like to close it. If there is no activity, i will close it next week.

book000 commented 1 month ago

I waited for a reply, but received no response, so I am closing this issue.