diff --git a/Makefile b/Makefile index e71b138218..d9a7220955 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .SECONDEXPANSION: -NPM_VERSION=3.10.10 -NODE_VERSION=6.9.5 +NPM_VERSION=4.2.0 +NODE_VERSION=7.8.0 DIST_DIR?=dist CACHE_DIR?=tmp/cache diff --git a/plugins.go b/plugins.go index 54e2d79fb5..2c4c342d02 100644 --- a/plugins.go +++ b/plugins.go @@ -492,6 +492,11 @@ func (p *Plugins) MigrateRubyPlugins() { } } +// Rebuild the plugins when node version changes +func (p *Plugins) Rebuild() { + p.execNpm("rebuild") +} + func (p *Plugins) addToCache(plugin *Plugin) { contains := func(name string) int { for i, plugin := range p.plugins { diff --git a/update.go b/update.go index 2ca11d968f..35c6e7a76c 100644 --- a/update.go +++ b/update.go @@ -49,6 +49,7 @@ func Update(channel string) { touchAutoupdateFile() SubmitAnalytics() UserPlugins.Update() + UserPlugins.Rebuild() UserPlugins.MigrateRubyPlugins() deleteOldPluginsDirectory() updateCLI(channel)