-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
After executing react-native run-windows
Powershell commands fail if there are spaces in the project path.
I’ve tracked the offending lines to this file:
https://github.com/ReactWindows/react-native-windows/blob/9896aaa35b2da8ea1cbf941feb549c60c79569f7/local-cli/runWindows/utils/deploy.js
Lines 20, 83, 86, 89 and 92
Here's the initial error you get in the "untouched" state of the code :
Starting the React-Native Server
Unblock-File : A positional parameter cannot be found that accepts argument
'Native\proj\node_modules\react-native-windows\local-cli\runWindows\utils\WindowsStoreAppUtils.ps1'.
At line:1 char:1
+ Unblock-File E:\React Native\proj\node_modules\react-native-windows\l ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Unblock-File], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.UnblockFileCommand
Failed to deploy: Command failed: powershell Unblock-File "E:\React Native\proj\node_modules\react-native-windows\local-cli\runWindows\utils\WindowsStoreAppUtils.ps1"
Unblock-File : A positional parameter cannot be found that accepts argument
'Native\proj\node_modules\react-native-windows\local-cli\runWindows\utils\WindowsStoreAppUtils.ps1'.
At line:1 char:1
+ Unblock-File E:\React Native\proj\node_modules\react-native-windows\l ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Unblock-File], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.UnblockFileCommand
When commenting out the faulty powershell commands everything runs fine.
Metadata
Metadata
Assignees
Labels
No labels