Repository navigation
Can`t execute Powershell scripts with child_process.spawn() #155
AlexInCube
started this conversation in
General
Replies: 2 comments
|
@AlexInCube I think the problem is that you are trying to load a script from snapshot, only the nodejs app has access to the snapshot that is a virtual FileSystem, you should instead firstly copy the script to a local directory and then run it from there |
0 replies
I already solve this problem. I am load script content with readFileSync and then provide this content to Powershell with argument "-Command {script content}" |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
My app works fine when i run it just with npm start. But I can`t execute Powershell scripts when i run my app from .exe

I have this error:
my package.json
My TypeScript code
All reactions