Because it's possible for npm to fail if it has been upgraded
@@ -205,7 +205,8 @@ function install_ipfs_js {
return
fi
- apt-get -y install npm libpam0g-dev fuse
+ apt-get -y install npm
+ apt-get -y install libpam0g-dev fuse
npm cache clean -f
npm install -g n