Giter Club home page Giter Club logo

Comments (3)

rsmeral avatar rsmeral commented on July 23, 2024

Ah, I had a silly bug in option parsing. Sorry!
Just published version 1.0.2 – should work now.

from scd30-cli.

BrianDee67 avatar BrianDee67 commented on July 23, 2024

Thanks for updating the code, however I am still seeing the same error.

pi@b-sharpe-pi:~$ yarn global add scd30-cli yarn global v1.22.10 warning package.json: No license field [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... success Installed "[email protected]" with binaries: - scd30-cli Done in 3.13s. pi@b-sharpe-pi:~$ sudo scd30-cli -b 3 status (node:2863) UnhandledPromiseRejectionWarning: Error: Invalid I2C bus number NaN at checkBusNumber (/usr/local/share/.config/yarn/global/node_modules/i2c-bus/i2c-bus.js:61:11) at open (/usr/local/share/.config/yarn/global/node_modules/i2c-bus/i2c-bus.js:35:3) at /usr/local/share/.config/yarn/global/node_modules/i2c-bus/i2c-bus.js:53:17 at new Promise (<anonymous>) at Object.openPromisified (/usr/local/share/.config/yarn/global/node_modules/i2c-bus/i2c-bus.js:51:49) at /usr/local/share/.config/yarn/global/node_modules/scd30-node/dist/index.js:227:33 at Generator.next (<anonymous>) at /usr/local/share/.config/yarn/global/node_modules/scd30-node/dist/index.js:8:71 at new Promise (<anonymous>) at __awaiter (/usr/local/share/.config/yarn/global/node_modules/scd30-node/dist/index.js:4:12) (node:2863) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:2863) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. pi@b-sharpe-pi:~$

I tried both with sudo and without but no change.

from scd30-cli.

rsmeral avatar rsmeral commented on July 23, 2024

I'm pretty sure you're still seeing the bug because of some Yarn caching issue.
Try reinstalling the package – yarn global remove scd30-cli, then yarn global add scd30-cli.

Alternatively, you can install it globally also using npm:
npm i -g scd30-cli

You can also run the package using npx without installing it (though this is very slow as it fetches dependencies on each run):
npx scd30-cli

from scd30-cli.

Related Issues (1)

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.