Git Product home page Git Product logo

Comments (15)

vikas5914 avatar vikas5914 commented on May 29, 2024 19

Fixed: i was using CMD. with PowerShell it was successful

from valet-windows.

jartaud avatar jartaud commented on May 29, 2024 11

@goowikns running Git Bash as Admin works for me. Thanks!

from valet-windows.

goowikns avatar goowikns commented on May 29, 2024 10

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.

qcind avatar qcind commented on May 29, 2024 4

it works in PowerShell on win10 platform.

from valet-windows.

Ahmed-Aboud avatar Ahmed-Aboud commented on May 29, 2024 4

when i changed the directory to the C and valet install it worked

from valet-windows.

EdixonAlberto avatar EdixonAlberto commented on May 29, 2024 3

Fix it by opening the terminal in administrator mode

from valet-windows.

cretueusebiu avatar cretueusebiu commented on May 29, 2024 2

@weerdenburg I've tried that but without success...

from valet-windows.

mdfurkanul avatar mdfurkanul commented on May 29, 2024 1

It works for all comand line just run as administrator mood.

from valet-windows.

soumyaRauth avatar soumyaRauth commented on May 29, 2024

It does not work in PowerShell either for me.

from valet-windows.

weerdenburg avatar weerdenburg commented on May 29, 2024

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.

weerdenburg avatar weerdenburg commented on May 29, 2024

@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.

Maariaah avatar Maariaah commented on May 29, 2024

Same here, I could not install it on D, but when I changed to C:\WINDOWS\system32> it installed successfully

from valet-windows.

MeowKim avatar MeowKim commented on May 29, 2024

same here. CMD or POWERSHELL as administrator was not working on D. Now it works when I changed to C :)

from valet-windows.

ajithjojo avatar ajithjojo commented on May 29, 2024

hey .. open CMD as administrator then it will work

from valet-windows.

BayuAriyadi avatar BayuAriyadi commented on May 29, 2024

mysql xampp 404 not fund

from valet-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.