I'm happy to see a port for node v4 (www/node4), the LTS release, but I've been unable to get this working with the www/npm port on 10.1-RELEASE. Either using pkg or building the npm port insists on installing www/node, which obviously conflicts with www/node4. The equivalent node012 port has npm012 to accompany it. Can the LTS version of npm be made available as a port or bundled into node4 (installs from https://nodejs.org bundle npm with the LTS release)? [root@dev /usr/ports/www/npm]# pkg info node4 node4-4.2.3 Name : node4 Version : 4.2.3 Installed on : Fri Jan 8 10:23:03 2016 GMT ... [root@dev /usr/ports/www/npm]# node --version v4.2.3 [root@dev /usr/ports/www/npm]# make ===> Staging for npm-2.14.7_2 ===> npm-2.14.7_2 depends on executable: gmake - found ===> npm-2.14.7_2 depends on package: node>=0.8.0 - not found ... TIA
Overriding the www/npm Makefile to use node4 seems to work OK. However the npm version bundled with node v4 and node v5 are different, so I still imagine separate ports are required.
npm-2.x was recently moved to www/npm2. I just proposed a patch to change www/npm2 to depend on www/node4 by default in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208787
npm2 now depends on node4 by default. Thanks!