Chinese Documentation : Updating to the latest version

For application dependencies, npm will automatically update packages that your application requires, based on the information in the package.json file.  For more information on package.json, see the npm documentation.  

The below information is for updating the StrongLoop command-line tool.

Icon

See Security advisories for important upgrade information required to address security issues.

Clean up old installations

If you installed StrongLoop software before 6 Aug 2014, enter these commands to clean up your installation:

$ npm uninstall -g strong-cli
$ npm uninstall -g loopback-sdk-angular-cli

For information why this is necessary, see the StrongLoop blog post on the subject

Icon

If you get errors running these commands, you may need to use sudo or manually delete the directories where these modules are installed.

Then follow the instructions in Getting started with LoopBack to install.

If you installed after 6 Aug 2014 then update your installation with this command:

$ npm install -g strongloop

If you have a LoopBack 1.x app

Icon

You must make changes to your old app to run it with LoopBack 2.0.

Follow the instructions in Migrating apps to version 2.0 to move your application to version 2.

Updating your Node.js installation

To update your version of Node, simply reinstall Node as you did previously.  See nodejs.org for details.