Text
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.
- git the source from https://github.com/isaacs/npm
- fix ./npm/lib/utils/tar.js
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.
-
parenting649 liked this
-
transientyou83 liked this
-
firemyst posted this