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
Cannot run yarn create vite my-app --template react-ts due to space in directory path to user home (on Windows).
warning Error running install script for optional dependency: "C:\\Users\\Firstname Lastname\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\snappy: Comma
nd failed.
Exit code: 1
Command: prebuild-install || node-gyp rebuild
Arguments:
Directory: C:\\Users\\Firstname Lastname\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\snappy
Output:
prebuild-install WARN install No prebuilt binaries found (target=16.13.1 runtime=node arch=x64 libc= platform=win32)
C:\\Users\\Firstname Lastname\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\snappy>if not defined npm_config_node_gyp (node \"C:\\Program Files\\nodejs\
\node_modules\\npm\\bin\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js\" rebuild ) else (node \"\" rebuild )
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.10.1 found at \"C:\\Python310\\python.exe\"
gyp http GET https://nodejs.org/download/release/v16.13.1/node-v16.13.1-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v16.13.1/node-v16.13.1-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v16.13.1/SHASUMS256.txt
gyp http GET https://nodejs.org/download/release/v16.13.1/win-x86/node.lib
gyp http GET https://nodejs.org/download/release/v16.13.1/win-arm64/node.lib
gyp http GET https://nodejs.org/download/release/v16.13.1/win-x64/node.lib
gyp http 200 https://nodejs.org/download/release/v16.13.1/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v16.13.1/win-x86/node.lib
gyp http 404 https://nodejs.org/download/release/v16.13.1/win-arm64/node.lib
gyp http 200 https://nodejs.org/download/release/v16.13.1/win-x64/node.lib
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the \"Desktop development with C++\" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:121:
47)
gyp ERR! stack at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visu
alstudio.js:351:14)
gyp ERR! stack at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:70:14
gyp ERR! stack at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:372:16
gyp ERR! stack at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\util.js:54:7
gyp ERR! stack at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (node:child_process:404:5)
gyp ERR! stack at ChildProcess.emit (node:events:390:28)
gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\
\\bin\\\\node-gyp.js\" \"rebuild\"
gyp ERR! cwd C:\\Users\\Firstname Lastname\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\snappy
gyp ERR! node -v v16.13.1
gyp ERR! node-gyp -v v8.3.0
gyp ERR! not ok"
info This module is OPTIONAL, you can safely ignore this error
success Installed "[email protected]" with binaries:
- create-vite
- cva
'C:\Users\Firstname' is not recognized as an internal or external command,
operable program or batch file.
error Command failed.
Exit code: 1
Command: C:\Users\Firstname Lastname\AppData\Local\Yarn\bin\create-vite
Arguments: my-app --template react-ts
Directory: C:\Users\Firstname Lastname\dev
Output:
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.
The whitespace in C:\Users\Firstname Lastname\ causes an error
Reproduction
try to create a new vite app from a directory path that contains white space (maybe with space in user name if it's breaking on path to AppData)
System Info
Windows
Used Package Manager
yarn
Logs
warning Error running install script for optional dependency: "C:\\Users\\Firstname Lastname\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\snappy: Command failed.Exit code: 1Command: prebuild-install || node-gyp rebuildArguments:Directory: C:\\Users\\Firstname Lastname\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\snappyOutput:prebuild-install WARN install No prebuilt binaries found (target=16.13.1 runtime=node arch=x64 libc= platform=win32)C:\\Users\\Firstname Lastname\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\snappy>if not defined npm_config_node_gyp (node \"C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js\" rebuild ) else (node \"\" rebuild )gyp info it worked if it ends with okgyp info using [email protected]gyp info using [email protected] | win32 | x64gyp info find Python using Python version 3.10.1 found at \"C:\\Python310\\python.exe\"gyp http GET https://nodejs.org/download/release/v16.13.1/node-v16.13.1-headers.tar.gzgyp http 200 https://nodejs.org/download/release/v16.13.1/node-v16.13.1-headers.tar.gzgyp http GET https://nodejs.org/download/release/v16.13.1/SHASUMS256.txtgyp http GET https://nodejs.org/download/release/v16.13.1/win-x86/node.libgyp http GET https://nodejs.org/download/release/v16.13.1/win-arm64/node.libgyp http GET https://nodejs.org/download/release/v16.13.1/win-x64/node.libgyp http 200 https://nodejs.org/download/release/v16.13.1/SHASUMS256.txtgyp http 200 https://nodejs.org/download/release/v16.13.1/win-x86/node.libgyp http 404 https://nodejs.org/download/release/v16.13.1/win-arm64/node.libgyp http 200 https://nodejs.org/download/release/v16.13.1/win-x64/node.libgyp ERR! find VSgyp ERR! find VS msvs_version not set from command line or npm configgyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Promptgyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more detailsgyp ERR! find VS looking for Visual Studio 2015gyp ERR! find VS - not foundgyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8gyp ERR! find VSgyp ERR! find VS **************************************************************gyp ERR! find VS You need to install the latest version of Visual Studiogyp ERR! find VS including the \"Desktop development with C++\" workload.gyp ERR! find VS For more information consult the documentation at:gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windowsgyp ERR! find VS **************************************************************gyp ERR! find VSgyp ERR! configure errorgyp ERR! stack Error: Could not find any Visual Studio installation to usegyp ERR! stack at VisualStudioFinder.fail (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:121:47)gyp ERR! stack at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:74:16gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:351:14)gyp ERR! stack at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:70:14gyp ERR! stack at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\find-visualstudio.js:372:16gyp ERR! stack at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\util.js:54:7gyp ERR! stack at C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\util.js:33:16gyp ERR! stack at ChildProcess.exithandler (node:child_process:404:5)gyp ERR! stack at ChildProcess.emit (node:events:390:28)gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)gyp ERR! System Windows_NT 10.0.22000gyp ERR! command \"C:\\\\Program Files\\\\nodejs\\\\node.exe\"\"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\"\"rebuild\"gyp ERR! cwd C:\\Users\\Firstname Lastname\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\snappygyp ERR! node -v v16.13.1gyp ERR! node-gyp -v v8.3.0gyp ERR! not ok"
info This module is OPTIONAL, you can safely ignore this error
success Installed "[email protected]" with binaries:
- create-vite
- cva
'C:\Users\Firstname' is not recognized as an internal or external command,
operable program or batch file.
error Command failed.
Exit code: 1
Command: C:\Users\Firstname Lastname\AppData\Local\Yarn\bin\create-vite
Arguments: my-app --template react-ts
Directory: C:\Users\Firstname Lastname\dev
Output:
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Describe the bug
Cannot run
yarn create vite my-app --template react-ts
due to space in directory path to user home (on Windows).The whitespace in
C:\Users\Firstname Lastname\
causes an errorReproduction
try to create a new vite app from a directory path that contains white space (maybe with space in user name if it's breaking on path to AppData)
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: