added sudo for global install of npm packages
fixed variable