# Resolved - Can't build production with aurelia-cli v2.0.3

**URL:** <https://discourse.aurelia.io/t/resolved-cant-build-production-with-aurelia-cli-v2-0-3/4682>\
**Category:** Help Requests\
**Created:** [March 9, 2022, 8:20pm UTC](https://discourse.aurelia.io/t/resolved-cant-build-production-with-aurelia-cli-v2-0-3/4682 "2022-03-09T20:20:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![roddharris](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/roddharris/32/1340_2.png) [@roddharris](https://discourse.aurelia.io/u/roddharris)\
**Post date:** [March 9, 2022, 8:20pm UTC](https://discourse.aurelia.io/t/resolved-cant-build-production-with-aurelia-cli-v2-0-3/4682/1 "2022-03-09T20:20:43Z")

</div>

I have `aurelia-cli v2.0.3` installed globally on my machine.

I created a new .Net Core Web API project, added a ClientApp folder within the project. Then, within the ClientApp folder, I ran `au new --here` with the following options.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/aurelia/original/2X/1/1fc7acf5c92ca4a2da2655b071ed18fc2dfffb7e.png)

Now, within the `ClientApp` directory, I run `au build --env prod` and get the following:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/aurelia/original/2X/9/94bb1aa1f91e5686bef133de8283d889bf46236d.png)

Why can’t I build the default app created with the cli? Is there something wrong with v2.0.3 of the cli or am I just doing something wrong? (Incidentally, running in dev mode seems to work just fine.)

using npm v16.5.0, npm v8.3.0

---

<div class="post-metadata">

**Author:** ![airboss001](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/airboss001/32/719_2.png) [@airboss001](https://discourse.aurelia.io/u/airboss001)\
**Post date:** [March 10, 2022, 7:22am UTC](https://discourse.aurelia.io/t/resolved-cant-build-production-with-aurelia-cli-v2-0-3/4682/2 "2022-03-10T07:22:55Z")

</div>

Looks suspiciously like a Windows System path with spaces issue were there are missing quotes around it.

---

<div class="post-metadata">

**Author:** ![roddharris](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/roddharris/32/1340_2.png) [@roddharris](https://discourse.aurelia.io/u/roddharris)\
**Post date:** [March 10, 2022, 12:38pm UTC](https://discourse.aurelia.io/t/resolved-cant-build-production-with-aurelia-cli-v2-0-3/4682/3 "2022-03-10T12:38:42Z")

</div>

Agreed, but this is “straight out of the box” – I haven’t added one line of my own code to anything the cli generated. The project that I’m working with doesn’t contain any spaces in its full path so it doesn’t seem tied to my project.

It almost appears that `au build` is trying to use my global version of npm (which is installed in the Program Files directory. Not sure why its not using the local version.

Has anyone else had this problem with Windows and the v2.0.3 cli?

---

<div class="post-metadata">

**Author:** ![roddharris](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/roddharris/32/1340_2.png) [@roddharris](https://discourse.aurelia.io/u/roddharris)\
**Post date:** [March 11, 2022, 2:32pm UTC](https://discourse.aurelia.io/t/resolved-cant-build-production-with-aurelia-cli-v2-0-3/4682/4 "2022-03-11T14:32:05Z")

</div>

I finally figured it out. I was trying typing the following:

> au build --env **prod**

When I should have been typing:

> au build --env **—prod**
