1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Trouble creating Angular projects with pnpm on macOS: Project location issue

Discussão em 'Angular' iniciado por Mcodes, Junho 19, 2025.

  1. Mcodes

    Mcodes Guest

    I'm trying to set up a new Angular project. My preference is to use the pnpm package manager for building Angular projects, and I'm on a macOS system.

    I'm encountering an unexpected issue when using pnpm with the Angular CLI. My habit is to navigate to a specific folder in the terminal. When I then run the command pnpm ng new <myprojectname> from within that designated directory, the new project consistently gets created in my user's home directory instead of the current working directory. I've attempted this numerous times, but the outcome is always the same.

    However, when I use npm and simply type ng new <myprojectname>, the project correctly scaffolds within the specified folder.

    Continue reading...

Compartilhe esta Página