Difference between revisions of "Serverless"
Jump to navigation
Jump to search
(Created page with "This is a reference page to install dev tools to support serverless on Ubuntu 16.04. There are other more comprehensive sources than this. Req: * nodejs < 4.x Install nodejs...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
Req: | Req: | ||
* nodejs < 4.x | * nodejs < 4.x | ||
Install nodejs from nodejs sources rather package manager. This installs <code>npm</code> and <code>nodejs</code> | Install nodejs from nodejs sources rather package manager. This installs <code>npm</code> and <code>nodejs</code> | ||
Line 11: | Line 12: | ||
nodejs --version #eg. v8.11.3 | nodejs --version #eg. v8.11.3 | ||
</source> | </source> | ||
Optional install [https://github.com/creationix/nvm NVM] Node Version Manager. With <code>nvm</code> the globally installed node apps and modules can reside in user space and there is no need to have them installed under <code>/usr/lib/node_modules</code> anymore, and so you'd not need to use <code>sudo</code>. | Optional install [https://github.com/creationix/nvm NVM] Node Version Manager. With <code>nvm</code> the globally installed node apps and modules can reside in user space and there is no need to have them installed under <code>/usr/lib/node_modules</code> anymore, and so you'd not need to use <code>sudo</code>. |
Latest revision as of 09:46, 4 July 2018
This is a reference page to install dev tools to support serverless on Ubuntu 16.04. There are other more comprehensive sources than this.
Req:
- nodejs < 4.x
Install nodejs from nodejs sources rather package manager. This installs npm
and nodejs
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - #LTS version npm --version #eg. 5.6.0 node --version #eg. v8.11.3 nodejs --version #eg. v8.11.3
Optional install NVM Node Version Manager. With nvm
the globally installed node apps and modules can reside in user space and there is no need to have them installed under /usr/lib/node_modules
anymore, and so you'd not need to use sudo
.
Install serverless. Option -g try-thread-sleep
is a workaround from Issue 4319
sudo npm install -g try-thread-sleep sudo npm install -g serverless --ignore-scripts spawn-sync serverless version