Text 19 Nov 23 notes node package manager npm on OpenBSD

the goal as mentioned in the post below is to install npm (node package manager) as user so no sudo and risky stuff with experimental apps.

    Line  91 : replace "-T" by "-I" 
    Line 199 : replace "-zmvxpf" by "xvfz"
  • now build npm and install it in your ~/bin folder if that’s where you already installed node.js and move around the directories so that your lib structure is neat.
    #install npm
    $ node cli.js install -gf

I’d suggest you install in a tmp dir and check the lib structure and move it to your local ~/bin folder it should be straightforward with 2 or 3 copy move.

  1. firemyst posted this

© firemyst USE AT YOUR OWN RISK