Installing Wrangler

Photo by Bram Naus on Unsplash

Installing Wrangler

Play this article

Installing/updating wrangler locally

  • wrangler should be installed as a dev dependency because this package is not required at runtime either for a pages or a workers project.

  • Following command will install wrangler as a dev dependency and so this package will be listed under devDependencies after installation. This command should be executed from the root folder of a pages / worker project.

yarn add -D wrangler
  • Above command can be used to update locally installed wrangler as well.

Installing wrangler globally

  • Make sure you are not executing following command from a folder that contains package.json directly under it.
yarn global add wrangler
  • Above command can be used to update globally installed wrangler as well.

Checking wrangler version

wrangler version