The journey of the coder (3)

avatar

Using npm and n

I like to have the same results over different environments that is why I highly recommend using versioning tools and not only git but also stuff to install dependencies like npm and the hability to handle different target versions like n. I might be wrong but this ends up being very similar like using bundler,gemfile and rvm to handle ruby versions (more on that in another post). Anyways back to the journey:

Things that were required

In the previous example, #simple is just an easy way to verify some logic without getting packages installed. I think as a good practice it is very important to understand how testing the same stuff, in the same environment (possibly very close) and many other factors deeply affects the long term success of a testing effort or project and how easy it will be to maintained in the future. That is why my first package will be n so I will allow to test the same stuff over different NodeJS versions and hopefully get the same or very similar results.

Screenshot_2019-09-25_20-42-36.png

As you can see in the above image I'm able to use the latest version of NodeJS and also the LTS version of it which also differs from the version I currently have install in the system with the OS package manager.


In case you miss the first post of this series:

Journal of posts and articles


@raserrano - Developer

kedjom-keku.jpg
@kedjom-kekuConservation Association
KK-icon-plant-tree-Green-outline.png
@treeplanterFund-raising upvoting bot
FFF-logo-bw.png
@forestfriendlyWater Saving bees

pal-sig-anim-trans



0
0
0.000
2 comments
avatar

@raserrano You have received a 100% upvote from @botreporter because this post did not use any bidbots and you have not used bidbots in the last 30 days!

Upvoting this comment will help keep this service running.

0
0
0.000
avatar

Hi @raserrano!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 4.084 which ranks you at #3662 across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 98 contributions, your post is ranked at #90.

Evaluation of your UA score:
  • Some people are already following you, keep going!
  • Try to show your post to more followers, for example via networking on our discord!
  • Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!

Feel free to join our @steem-ua Discord server

0
0
0.000