# Dfx deploy failed (exit status: 255)

**URL:** https://forum.dfinity.org/t/dfx-deploy-failed-exit-status-255/30820
**Category:** Motoko
**Created:** [May 15, 2024, 5:46pm UTC](https://forum.dfinity.org/t/dfx-deploy-failed-exit-status-255/30820 "2024-05-15T17:46:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![georgiana](https://avatars.discourse-cdn.com/v4/letter/g/3ec8ea/32.png) [@georgiana](https://forum.dfinity.org/u/georgiana)
#### Post date: [May 15, 2024, 5:46pm UTC](https://forum.dfinity.org/t/dfx-deploy-failed-exit-status-255/30820/1 "2024-05-15T17:46:46Z")

</div>

Hello everyone,  
I receive this error when I am trying to run “dfx deploy”:

Deploying all canisters.  
All canisters have already been created.  
Building canisters…  
Building frontend…  
Error: The post-build step failed for canister ‘ryjl3-tyaaa-aaaaa-aaaba-cai’ with an embedded error: The command ‘“npm” “run” “build”’ failed with exit status ‘exit status: 255’.  
Stdout:

> token\_frontend@0.1.0 prebuild  
> npm run generate

> token\_frontend@0.1.0 generate  
> dfx generate token\_v3\_backend

Stderr:  
Error: Cannot find canister ‘token\_v3\_backend’.

My dfx version is 0.9.3 and node version is 16.20.2.  
I didn’t find a topic with this issue. 🙂  
Please help me! Thank you!

 ![error_deploy](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/7/8/78f8c9b31bc7ca9260200318209a5c19940f8b2c.png)

---

<div class="post-metadata">

### Author: ![h1teshtr1path1](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/h1teshtr1path1/32/24662_2.png) [@h1teshtr1path1](https://forum.dfinity.org/u/h1teshtr1path1)
#### Post date: [May 15, 2024, 6:55pm UTC](https://forum.dfinity.org/t/dfx-deploy-failed-exit-status-255/30820/2 "2024-05-15T18:55:26Z")

</div>

Do consider upgrading your dfx, you can use this guide [The dfx version manager (dfxvm) version 1.0.0 is released!](https://forum.dfinity.org/t/the-dfx-version-manager-dfxvm-version-1-0-0-is-released/27720)  
Secondly you can check your canister dependencies in dfx.json file, remove any unwanted dependence.
