June 28, 2022, 4:08 p.m.

rockyourcode: Use Ionic Angular With pnpm

rockyourcode

Hello 👋! Thanks for subscribing.

I wrote a very short blog post this week:

Use Ionic Angular With pnpm

Published on: 2022-06-27

tags: Angular, Ionic

Ionic is an “open source UI toolkit for building performant, high-quality mobile and desktop apps using web technologies”.

I use it to explore building native apps for iOs and Android using Angular.

Ionic has a CLI (command line interface) to scaffold a project.

If you want to use pnpm, run the following command in your terminal to create a new project:

pnpm --package=@ionic/cli dlx ionic start \
  MyFirstApp \
  blank \
  --type angular

pnpm dlx fetches packages from the registry without installing them as a dependency. It is the equivalent to npx.

The CLI will use pnpm to install packages, too.

If you encounter problems later, you can also manually set the package manager in your project:

pnpm exec ionic config set -g npmClient pnpm

The above command assumes that the ionic CLI is a dev dependency inside package.json.


Thank you for reading my blog.

Don’t hesitate to reach out via email or Twitter!

You just read issue #36 of rockyourcode. You can also browse the full archives of this newsletter.

Share on Facebook Share on Twitter Share via email
Brought to you by Buttondown, the easiest way to start and grow your newsletter.