0

I created a simple app for youtube channels management locally, it work fine when i run it on my environment, but when I want to check it globally it not working.

I tried first locally linking, then checking it like this sudo npm link, It link everything correctly but then when tried to use my command of my package it didn't work.

I also publish it to npm, but still not worked. I removed the package-lock.json & node_modules by typing:

rm -rf node_modules package-lock.json

and then reinstall it, but still not working.

Help me please. I just want to use run command for starting my application/pkg

This is my Package.json file:

{
  "name": "ytlocal",
  "version": "0.0.1",
  "description": "",
  "main": "src/index.js",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/hamzaxeros/ytlocal.git"
  },
  "keywords": [
    "youtube",
    "channel",
    "youtube-locally",
    "youtube-channel",
    "youtube-manager",
    "youtube-management",
    "youtube-channel-local"
  ],
  "author": "Hamza Hussain",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/hamzaxeros/ytlocal/issues"
  },
  "homepage": "https://github.com/hamzaxeros/ytlocal#readme",
  "dependencies": {
    "chalk": "^4.1.2",
    "inquirer": "^8.2.0",
    "shelljs": "^0.8.4"
  },
  "devDependencies": {
    "eslint": "^7.32.0"
  },
  "bin": {
    "run": "src/index.js"
  }
}
1
  • ooh i FOUND OUT, How to solve this particular point, Basically we will to make the entry point executable by typing chmod +x ./src/index.js thats it, then it will work fine. Commented Oct 9, 2021 at 3:49

1 Answer 1

1

Ooh I FIND OUT, how to get rid off this point, basically we will need to make the entry point executable by tying :

chmod +x ./src/index.js
npm link
run
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.