pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: building node packages.... zwavejs



> There's no way to do it within pkgsrc in a sensible way.  The best way
> to handle this stuff is to pick a directory to install things to (for
> example your home directory), run "npm install ..." from that
> directory, and then add $directory/node_modules/.bin to your path.
>
> Don't use "npm install -g" to install things to the global directory
> where npm/node are installed (so for example things show up in
> /usr/pkg/bin), it might be tempting but things break fast if they work
> at all (conflicts, EPERM issues if using sudo, etc etc).

Thanks.  This uses yarn not npm, but I gather that's the same thing but
ditferent, and that just typing yarn is getting me a local install.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index