When installing from packages on Ubuntu 16.04 LTS with default repo we get nodejs-4.2.6~dfsg-1ubuntu4.1 package from Ubuntu repo instead of deb.nodesource.com. The apt-cache policy nodejs output:
nodejs:
Installed: (none)
Candidate: 4.2.6~dfsg-1ubuntu4.1
Version table:
4.2.6~dfsg-1ubuntu4.1 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
4.2.6~dfsg-1ubuntu4 500
500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
0.10.46-1nodesource1~xenial1 500
500 https://deb.nodesource.com/node xenial/main amd64 Packages
The fix is to set node['nodejs']['repo'] = 'https://deb.nodesource.com/node_6.x' (default repo is https://deb.nodesource.com/node)
When installing from packages on Ubuntu 16.04 LTS with default repo we get
nodejs-4.2.6~dfsg-1ubuntu4.1package from Ubuntu repo instead of deb.nodesource.com. Theapt-cache policy nodejsoutput:The fix is to set
node['nodejs']['repo'] = 'https://deb.nodesource.com/node_6.x'(default repo ishttps://deb.nodesource.com/node)