Coder Social home page Coder Social logo

Comments (4)

dianjuar avatar dianjuar commented on August 31, 2024

I'm not entirely familiar with the OTP parameter. Is the OTP parameter always a number?


As a workaround, I'll suggest doing the following:

- nx run utilities:deploy-npm --otp=634119
+ nx run utilities:deploy-npm --otp='634119'

from ngx-deploy-npm.

dianjuar avatar dianjuar commented on August 31, 2024

If the right path is changing the OTP type to a number, not a string, we are open to receiving the contribution.

A good starting point is changing the type of the OTP parameter on:

from ngx-deploy-npm.

Phault avatar Phault commented on August 31, 2024

I'm not entirely familiar with the OTP parameter. Is the OTP parameter always a number?

Not entirely sure, but it seems like it is. Still, string seems more correct for a password and it's also what npm themselves list the parameter as, so I think the proper fix would be Nx making their type conversion for CLI parameters smarter. I've created nrwl/nx#11519 in hopes this will get fixed.

For now I think the proper workaround would be accepting both number and string. I will create a PR shortly.

As a workaround, I'll suggest doing the following:

- nx run utilities:deploy-npm --otp=634119
+ nx run utilities:deploy-npm --otp='634119'

This unfortunately makes no difference, it still gets converted to a number by Nx. :(

from ngx-deploy-npm.

dianjuar avatar dianjuar commented on August 31, 2024

I was able to make it run with:

- nx run utilities:deploy-npm --otp=634119
+ npx nx deploy node-lib1 --otp "'634119'"

But I still think it can be improved by changing the type

from ngx-deploy-npm.

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.