- 2.Update npm and install DocPadNote: If you encounter permission errors with the above, do not use
sudo, in our experience using
sudowith node only creates further issues (regardless of DocPad). Follow our Step 1 instructions for a way to install Node with permissions that never require the use of
sudo.You can verify DocPad has installed correctly by using
docpad -Vto output DocPad's version number.
- 3.When upgrading: in addition to the above, run
docpad updateinside your project directory to ensure that your local installation of DocPad and its plugins are updated to their latest compatible versions.
If you get any errors, try running DocPad anyway (most installation errors are non fatal and just for debugging purposes). If you do get a fatal error then refer to our Troubleshooting Guide as there's probably already a working solution. :-)