Comments (15)
Fixed: i was using CMD. with PowerShell it was successful
from valet-windows.
@goowikns running Git Bash as Admin works for me. Thanks!
from valet-windows.
Same for me, doesn't seem to work with PowerShell either
This is what I found in the valet Logs:
2017-07-15 22:12:33,879 INFO - Starting ServiceWrapper in the CLI mode
2017-07-15 22:12:34,179 FATAL - WMI Operation failure: NoSuchService
WMI.WmiException: NoSuchService
at winsw.WrapperService.ThrowNoSuchService()
at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[] args)
2017-07-15 22:12:36,094 INFO - Starting ServiceWrapper in the CLI mode
2017-07-15 22:12:36,243 FATAL - WMI Operation failure: NoSuchService
WMI.WmiException: NoSuchService
at winsw.WrapperService.ThrowNoSuchService()
at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[] args)
2017-07-15 22:12:36,503 INFO - Starting ServiceWrapper in the CLI mode
2017-07-15 22:12:36,651 INFO - Uninstalling the service with id 'valet_nginx'
2017-07-15 22:12:36,651 WARN - The service with id 'valet_nginx' does not exist. Nothing to uninstall
2017-07-15 22:12:36,652 INFO - Completed. Exit code is 0
2017-07-15 22:12:36,949 INFO - Starting ServiceWrapper in the CLI mode
2017-07-15 22:12:37,104 FATAL - WMI Operation failure: AccessDenied
WMI.WmiException: AccessDenied
at WMI.WmiRoot.BaseHandler.CheckError(ManagementBaseObject result)
at WMI.WmiRoot.ClassHandler.Invoke(Object proxy, MethodInfo method, Object[] args)
at winsw.WrapperService.Run(String[] _args, ServiceDescriptor descriptor)
at winsw.WrapperService.Main(String[] args)
EDIT
nvm I didn't open PowerShell as administrator ( @soumyaRauth - this works )
from valet-windows.
it works in PowerShell on win10 platform.
from valet-windows.
when i changed the directory to the C and valet install it worked
from valet-windows.
Fix it by opening the terminal in administrator mode
from valet-windows.
@weerdenburg I've tried that but without success...
from valet-windows.
It works for all comand line just run as administrator mood.
from valet-windows.
It does not work in PowerShell either for me.
from valet-windows.
Would it be an idea that Valet for Windows checks if it's running in admin mode? And if not... shows a nice notification/error?
from valet-windows.
@cretueusebiu That's a bummer, but have you tried for example the net SESSION
trick?
I have implemented it with succes in some batch scripts that Visual Studio triggered after compiling.
I also needed to stop and start a service with admin privileges.
So in my case I had to run Visual Studio as administrator.
@echo off
net SESSION >nul 2>&1
if %ERRORLEVEL% NEQ 0 goto AdminError
echo Executing:
echo %0 %*
net STOP "serviceA"
echo Here you can do some extra logic like adjusting config files or copy some files etc...
net START "serviceA"
goto End
:AdminError
echo;
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo It seems that you have started this batch-file (or Microsoft Visual Studio) without admin privileges.
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo;
:End
from valet-windows.
Same here, I could not install it on D, but when I changed to C:\WINDOWS\system32> it installed successfully
from valet-windows.
same here. CMD or POWERSHELL as administrator was not working on D. Now it works when I changed to C :)
from valet-windows.
hey .. open CMD as administrator then it will work
from valet-windows.
mysql xampp 404 not fund
from valet-windows.
Related Issues (20)
- DNS_PROBE_FINISHED_NXDOMAIN HOT 1
- Install of cretueusebiu/valet-windows failed HOT 2
- An error arises when I try to install valet-windows HOT 2
- Disable auto start on boot HOT 2
- Unable to start NGINX after upgrading to Windows 11 HOT 2
- Add valet 3 HOT 1
- How to install extension gd if php installed from powershell?
- Valet not working with Vite HOT 4
- PHP install script error HOT 5
- [Solved] Access to phpmyadmin.test was denied | You don't have authorization to view this page. HOT 2
- Update of cretueusebiu/valet-windows failed HOT 2
- Valet doesn't work
- Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length() HOT 1
- Google Chrome and Firefox do not trust certificates
- Will it be upgraded to Valet V4? HOT 10
- Custom nginx conf HOT 2
- PHP version used by CLI not the same as the PHP-FPM?
- Valet cannot install HOT 1
- Error Install On Windows 11, PHP 8,1 HOT 6
- Fix WSL or WSL2 issue with AcrylicDNS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from valet-windows.