You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to run any commands with netlify on wsl2, getting an error saying it is unable to spawn powershell.exe.
To Reproduce
Steps to reproduce the behavior:
netlify dev
or .node_modules/.bin/netlify dev
Configuration
node v12 installed via nvm on wsl2.
have tried with node v14 also
have tried local and global installs of netlify-cli
current /etc/wsl.conf:
[network]
[automount]
enabled=true
[user]
default=scarter1
# Mount root to /drive/ instead of /mnt/drive for docker compatibility.
root=/
# Unsets (unmasks) -wx bits for group/other so perms don't show up as 777 on WSL.
options="metadata,umask=22,fmask=11"
◈ Netlify Dev ◈
◈ Ignored general context env var: LANG (defined in process)
◈ No app server detected and no "command" specified
◈ Using current working directory
◈ Unable to determine public folder to serve files from
◈ Setup a netlify.toml file with a [dev] section to specify your dev server settings.
◈ See docs at: https://cli.netlify.com/netlify-dev#project-detection
◈ Running static server from "react-conf-videos"
◈ Functions server is listening on 33877
◈ Server listening to 3999
/home/scarter1/Development/demoProject/node_modules/netlify-redirector/lib/redirects.js:116
throw ex;
^
Error: spawn /c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:81:21) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn /c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe',
path: '/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe',
spawnargs: [
'-NoProfile',
'-NonInteractive',
'–ExecutionPolicy',
'Bypass',
'-EncodedCommand',
'UwB0AGEAcgB0ACAAIgBoAHQAdABwADoALwAvAGwAbwBjAGEAbABoAG8AcwB0ADoAOAA4ADgAOAAiAA=='
]
}
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I'm unable to run any commands with netlify on wsl2, getting an error saying it is unable to spawn powershell.exe.
To Reproduce
Steps to reproduce the behavior:
netlify dev
.node_modules/.bin/netlify dev
Configuration
current /etc/wsl.conf:
I've tried adding
but that didn't work.
Expected behavior
It runs the development server
CLI Output
The text was updated successfully, but these errors were encountered: