Giter Site home page Giter Site logo

Comments (5)

totem415 avatar totem415 commented on August 24, 2024

OK, so just to be sure, I tried installing it globally, but it still doesn't work:

root@1upTester:/var/lib/cloud9/MercuryDesign/trunk# npm install node-deb -g --save
/usr/bin/node-deb -> /usr/lib/node_modules/node-deb/node-deb
/usr/lib
└── [email protected]

root@1upTester:/var/lib/cloud9/MercuryDesign/trunk# node-deb -v
/usr/bin/node-deb: line 77: jq: command not found
root@1upTester:/var/lib/cloud9/MercuryDesign/trunk# node-deb --help
/usr/bin/node-deb: line 77: jq: command not found

No dice.

from node-deb.

jcvernaleo avatar jcvernaleo commented on August 24, 2024

For that global example it looks like you just need jq (a json parser) installed. On Debian/Ubuntu you can install it with:
sudo apt-get install jq

from node-deb.

jcvernaleo avatar jcvernaleo commented on August 24, 2024

As for you first (non-local example), when you install locally (without -g) node-deb is there, just not in your path.

jcv@triforce tmp $ npm install node-deb --save
npm WARN saveError ENOENT: no such file or directory, open '/data/shared/tmp/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/data/shared/tmp/package.json'
npm WARN tmp No description
npm WARN tmp No repository field.
npm WARN tmp No README data
npm WARN tmp No license field.

+ [email protected]
added 1 package from 1 contributor in 0.772s
jcv@triforce tmp $ which node-deb
jcv@triforce tmp $ 

but it is there:

jcv@triforce tmp $ ls node_modules/.bin/
node-deb

so you can just run it with the full path:

./node_modules/.bin/node-deb

from node-deb.

totem415 avatar totem415 commented on August 24, 2024

Cool.

Now I can get it responding to commands when installed globally or just locally.

Thanks very much for your help.

-roger

from node-deb.

heartsucker avatar heartsucker commented on August 24, 2024

Since this was opened, i there anything I can do to tweak the package so that it's easier to run without the -g option? Like for projects that want to pin to a version so a dev could have multiple projects that on their machine that have dependencies on different versions of node-deb. Asking because honestly, I'm not a node person and this was built when I was doing ops to help out my team with deploys.

from node-deb.

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.