Forum Discussion
How to fix error while creating Tool extension from Windows Admin Center CLI
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
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)
- TusharBhagatJun 10, 2019Copper Contributor
alexanderboswellThanks for your reply.
I have followed the process but unfortunately I am facing same problem. But I can proceed with the changes suggested in GIT PR raised by @nitinpawar28
https://github.com/microsoft/windows-admin-center-extension-template/pull/49
I will try to do it on clean machine and will let you know.
- alexanderboswellMay 29, 2019
Microsoft
TusharBhagat I am still looking into this issue. I am having a difficult time trying to reproduce the issue. I will provide any update when it is available.