Removing app directory and updating for the current version using node