# Can't run development environment, getting errors in ui-devel. Pls help ...

**URL:** <https://forum.ansible.com/t/cant-run-development-environment-getting-errors-in-ui-devel-pls-help/34164>\
**Category:** AWX Project\
**Tags:** aws, awx\
**Created:** [November 6, 2020, 12:12pm UTC](https://forum.ansible.com/t/cant-run-development-environment-getting-errors-in-ui-devel-pls-help/34164 "2020-11-06T12:12:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prem\_Kumar](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Prem\_Kumar](https://forum.ansible.com/u/Prem_Kumar)\
**Post date:** [November 6, 2020, 12:12pm UTC](https://forum.ansible.com/t/cant-run-development-environment-getting-errors-in-ui-devel-pls-help/34164/1 "2020-11-06T12:12:20Z")

</div>

Hi,

I followed the contributing guide to setup the dev environment. After building the container using (make docker-compose-build) provides a successful image of the following:

Successfully tagged ansible/awx\_devel:latest  
docker tag ansible/awx\_devel [gcr.io/ansible-tower-engineering/awx\_devel:devel](http://gcr.io/ansible-tower-engineering/awx_devel:devel)  
#docker push [gcr.io/ansible-tower-engineering/awx\_devel:devel](http://gcr.io/ansible-tower-engineering/awx_devel:devel)  
[root@ip-172-20-8-107 awx]# docker images  
REPOSITORY TAG IMAGE ID CREATED SIZE  
ansible/awx\_devel latest cbbd51356bb7 About a minute ago 1.73GB  
[gcr.io/ansible-tower-engineering/awx\_devel](http://gcr.io/ansible-tower-engineering/awx_devel) devel cbbd51356bb7 About a minute ago 1.73GB  
 7f5c38315cb0 2 minutes ago 1.65GB  
 378ce973425c 2 hours ago 1.73GB  
 cd5d74d66126 2 hours ago 1.65GB  
centos 8 0d120b6ccaa8 2 months ago 215MB

Post above step, when I try to get to next step of (make ui-devel), I get errors as follows:

npm --prefix awx/ui run build-devel –

> awx@1.0.0 build-devel /home/centos/awxworkdir/awx/awx/ui

> npm run dev  
> awx@1.0.0 dev /home/centos/awxworkdir/awx/awx/ui  
> webpack --config build/webpack.development.js --progress

CLI for webpack must be installed.  
webpack-cli ([https://github.com/webpack/webpack-cli](https://github.com/webpack/webpack-cli))

We will use “npm” to install the CLI via “npm install -D”.  
Do you want to install ‘webpack-cli’ (yes/no): yes  
Installing ‘webpack-cli’ (running ‘npm install -D webpack-cli’)…  
awx@1.0.0 /home/centos/awxworkdir/awx/awx/ui  
`-- webpack-cli@4.2.0

npm WARN webpack-cli@4.2.0 requires a peer of webpack@4.x.x || 5.x.x but none was installed.  
npm WARN awx@1.0.0 No license field.  
{ Error: Cannot find module ‘webpack-cli/package.json’  
at Function.Module.\_resolveFilename (module.js:476:15)  
at Function.resolve (internal/module.js:27:19)  
at runCli (/usr/lib/node\_modules/webpack/bin/webpack.js:50:26)  
at runCommand.then (/usr/lib/node\_modules/webpack/bin/webpack.js:132:5)  
at process.\_tickCallback (internal/process/next\_tick.js:109:7) code: ‘MODULE\_NOT\_FOUND’ }  
npm ERR! Linux 3.10.0-862.2.3.el7.x86\_64

npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “run” “dev”  
npm ERR! node v6.17.1  
npm ERR! npm v3.10.10  
npm ERR! code ELIFECYCLE  
npm ERR! awx@1.0.0 dev: `webpack --config build/webpack.development.js --progress`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the awx@1.0.0 dev script ‘webpack --config build/webpack.development.js --progress’.  
npm ERR! Make sure you have the latest version of node.js and npm installed.  
npm ERR! If you do, this is most likely a problem with the awx package,  
npm ERR! not with npm itself.  
npm ERR! Tell the author that this fails on your system:  
npm ERR! webpack --config build/webpack.development.js --progress  
npm ERR! You can get information on how to open an issue for this project with:  
npm ERR! npm bugs awx  
npm ERR! Or if that isn’t available, you can get their info via:  
npm ERR! npm owner ls awx  
npm ERR! There is likely additional logging output above.  
npm ERR! Please include the following file with any support request:

npm ERR! /home/centos/awxworkdir/awx/awx/ui/npm-debug.log  
npm ERR! Linux 3.10.0-862.2.3.el7.x86\_64

npm ERR! argv “/usr/bin/node” “/bin/npm” “–prefix” “awx/ui” “run” “build-devel” “–”  
npm ERR! node v6.17.1  
npm ERR! npm v3.10.10  
npm ERR! code ELIFECYCLE  
npm ERR! awx@1.0.0 build-devel: `npm run dev`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the awx@1.0.0 build-devel script ‘npm run dev’.  
npm ERR! Make sure you have the latest version of node.js and npm installed.  
npm ERR! If you do, this is most likely a problem with the awx package,  
npm ERR! not with npm itself.  
npm ERR! Tell the author that this fails on your system:  
npm ERR! npm run dev  
npm ERR! You can get information on how to open an issue for this project with:  
npm ERR! npm bugs awx  
npm ERR! Or if that isn’t available, you can get their info via:  
npm ERR! npm owner ls awx  
npm ERR! There is likely additional logging output above.  
npm ERR! Please include the following file with any support request:

npm ERR! /home/centos/awxworkdir/awx/npm-debug.log  
make: \*\*\* [ui-devel] Error

The environment that I’m currently working is AWS EC2 on a Cento7.7 flavour, node-6.17.1, npm-3.10.10 & ansible-2.9.14. Do let me know for any further information. Any help in this regard is highly appreciable.

Regards,  
PremKumar
