Update to 1.20.2, messed up console

When pushing a function to AWS 1.20.2 is somehow messing up my Ubuntu 16.04 console.

jonsmirl@ubuntu-16:~/aosp/serverless$ sls deploy function -f hlsPut
Serverless: Packaging function: hlsPut...
Serverless: Excluding development dependencies...
                                                                               Serverless: Uploading function: hlsPut (23.93 KB)...
Serverless: Successfully deployed function: hlsPut
jonsmirl@ubuntu-16:~/aosp/serverless$ jonsmirl@ubuntu-16:~/aosp/serverless$ 

At this point echo has been turned off in the console. This problem was not present before the 1.20 upgrade.


So I removed serverless and reinstalled with these errors…
Note that it is asking me with run sudo when I already am sudo

jonsmirl@ubuntu-16:~$ sudo npm install -g serverless
/usr/local/bin/serverless -> /usr/local/lib/node_modules/serverless/bin/serverless
/usr/local/bin/sls -> /usr/local/lib/node_modules/serverless/bin/serverless
/usr/local/bin/slss -> /usr/local/lib/node_modules/serverless/bin/serverless

> spawn-sync@1.0.15 postinstall /usr/local/lib/node_modules/serverless/node_modules/spawn-sync
> node postinstall


> serverless@1.20.2 postinstall /usr/local/lib/node_modules/serverless
> node ./scripts/postinstall.js


Error: You don't have permission to write to /home/jonsmirl/.bashrc.
Try running with sudo instead:

  sudo /usr/local/bin/node /usr/local/lib/node_modules/serverless/node_modules/tabtab/src/cli.js install --name serverless --auto

oh oh Error: EACCES: permission denied, open '/home/jonsmirl/.bashrc'
Could not auto-install serverless autocomplete script.
Please copy / paste the script above into your shell.
+ serverless@1.20.2
added 245 packages in 13.215s
jonsmirl@ubuntu-16:~$

It sounds like a filesystem permission issue. Check the owner/group and permissions for the file