The following instructions describe how to set up the Jive Node SDK on your local development machine. The Jive Node SDK runs on Mac OS, Windows, Ubuntu, Red Hat, CentOS and requires Node.js (version 0.10.x or higher).
OSX
- Install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install Node.js using Homebrew:
brew install node
- Install the Jive-SDK for Node.js (use the -g option to install globally):
sudo npm install -g jive-sdk
Windows
- Download Node.js that correct version compiled for your processor architecture and OS using instructions specified at the Node.js website.
- Right-click the installer and select "Run as administrator".
- Open terminal and type/paste (use the -g option to install globally):
npm install -g jive-sdk
Linux
Red Hat & CentOS
- Download Node.js that correct version compiled for your processor architecture and distro using instructions specified at the Node.js website.
- Install the Jive-SDK for Node.js (use the -g option to install globally):
sudo npm install -g jive-sdk
Ubuntu
- Install Node.js current release using Ubuntu's package manager:
sudo apt-get install nodejs
- Install the Node.js package manager:
sudo apt-get install npm
- Create a symbolic link for Node:
sudo ln -s /usr/bin/nodejs /usr/bin/node
- Install the Node Jive-SDK:
sudo npm install -g jive-sdk
Cloud-Based IDE
- Install Node.js as specified at the Node.js website for the appropriate development environment.
- For instructions running the Jive Node SDK using Nitrous.IO, refer to Using Nitrous.IO with the Jive Node SDK.
Uninstalling Node.JS (system installed)
If you need to uninstall Node.JS or want to use NVM (see below) to have different versions of Node accessible on your machine for compatibility, use the instructions below. It is HIGHLY recommended to uninstall your default system installed instance of Node.JS and use NVM to have multiple version on your machine for compatibility reasons.
Mac:
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}
sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node opt/local/include/node /opt/local/lib/node_modules
PC:
Control Panel --> Add/remove programs -->uninstall node.js
Ubuntu:
sudo apt-get remove nodejs
sudo apt-get clean
NVM: Multiple Versions on One Machine
This is our recommended method for running Node.JS. If you are going to use NVM, you must uninstall your system installed (e.g. if you installed from the download off from nodejs.org's site)—please see the uninstall instructions above. Follow the documentation on NVM for how to install and use different versions of Node.JS.
Mac
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash
Windows
Goto and follow: https://github.com/coreybutler/nvm/releases
Linux
- wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash
Proxy Through Firewall
If you are running behind a firewall, follow these steps:
- Modify the .npmrc file in your home directory ("~/.npmrc" on Mac, Linux; "\Users\<username>\.npmrc" on Windows).
- Add the following lines, replacing the values in <brackets> with your proxy information:
proxy = http://<proxy_username>:<Proxy_password>@<proxy_url>:<proxy_port>/
https-proxy = http://<proxy_username>:<Proxy_password>@<proxy_url>:<proxy_port>/
registry = http://registry.npmjs.org/
What's Next?
- For guidance on what you can do with the Jive Node SDK, refer to Getting Started with the Jive Node SDK.
- Iterate faster with your integrations by using Ngrok: Warp Speed for Your Integration Iterations.
Comments