Bug 206028 - www/node4 doesn't have compatible www/npm
Summary: www/node4 doesn't have compatible www/npm
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-08 10:38 UTC by Will Green
Modified: 2016-04-30 15:44 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will Green 2016-01-08 10:38:01 UTC
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
Comment 1 Will Green 2016-01-08 11:27:36 UTC
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.
Comment 2 Bradley T. Hughes freebsd_committer freebsd_triage 2016-04-13 20:14:57 UTC
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
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2016-04-30 15:44:10 UTC
npm2 now depends on node4 by default. Thanks!