Forum Discussion
How to fix error while creating Tool extension from Windows Admin Center CLI
TusharBhagat Can you run this in the same path you are trying to create an extension:
npm list
and let me know which version of the windows-admin-center-cli you have installed?
I am little bit confused about version I can get for different CLI.
When I execute npm List in the same folder where I am going to create extension I am getting package version as windows-admin-center-cli@0.1.26 or if latest installed then windows-admin-center-cli@0.1.29
But I get different output when I am executing command npm wac-cli -v
6.9.0
But answer to your question, I am getting version 0.1.26
- alexanderboswellMay 15, 2019
Microsoft
TusharBhagat I believe this error might of been fixed in a recent version. Can you try installing windows-admin-center-cli@0.1.29 and see if you get the same issue? I am not sure what wac-cli is referring to as we do not have versions that high.
- TusharBhagatMay 16, 2019Copper Contributor
I have installed latest windows admin center with version 0.1.29 and tried same command as
"wac create --company Microsoft --tool Foo --version insider"
But still I am getting same error as shown in attached image
- alexanderboswellMay 30, 2019
Microsoft
TusharBhagat can you try doing these installs again? (https://docs.microsoft.com/en-us/windows-server/manage/windows-admin-center/extend/prepare-development-environment)
npm install -g npm npm install -g @angular/cli@1.6.5 npm install -g gulp npm install -g typescript npm install -g tslint npm install -g windows-admin-center-cli
I have followed our documentation found here: https://docs.microsoft.com/en-us/windows-server/manage/windows-admin-center/extend/developing-extensions
I set up a clean environment in Windows Sandbox and followed the documentation. If this does not provide any change please provide any more details you have as I still cant reproduce this issue (npm version and node versions)