Powershell support
See original GitHub issueExpected Behavior
[REQUIRED] Describe expected behavior
npm run-script --silent build-app should not rely on unix commands as to stay cross-platform.
Describe the problem
‘rm’ is not recognized as an internal or external command, operable program or batch file.
[REQUIRED] Actual Behavior
npm run-script --silent build-app
‘rm’ is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @openid/appauth@1.3.0 prepare: npm run-script --silent build-app
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @openid/appauth@1.3.0 prepare script.
[REQUIRED] Steps to reproduce the behavior
clone the repository and run the script from a powershell environment.
[REQUIRED] Environment
- AppAuth-JS version: 1.3.0
- AppAuth-JS Environment (Node, Browser (UserAgent), …): Windows 10
- Source code snippts (inline or JSBin)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
PowerShell Support Lifecycle - Microsoft Learn
Support for PowerShell is delivered via traditional Microsoft support agreements, including paid support, Microsoft Enterprise Agreements, and ...
Read more >PowerShell Documentation - Microsoft Learn
Official product documentation for PowerShell. ... PowerShell Editions + Tools. Available editions, tools, and technology that supports PowerShell ...
Read more >PowerShell community support resources - Microsoft Learn
List of resources created for and by PowerShell users. ... For information about our support policy, see the PowerShell Support Lifecycle.
Read more >PowerShell - Microsoft Lifecycle
PowerShell follows the Modern Lifecycle Policy. Support dates are shown in the Pacific Time Zone (PT) - Redmond, WA, USA. Support Dates ...
Read more >PowerShell - Microsoft Tech Community
Hi Team, Need your support to Create a PowerShell script which can automate Pull Requests & Merge two branches (base & head) using...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can use WSL.
Workaround: In package.json find:
"clean": "rm -rf built"
replace by:"clean": "rmdir /S /Q built"
or instead use this line to be compatible with unix and windows:
"clean": "(rm -rf built || rmdir /S /Q built)"
Windows users will see the rm not found error in console, but the command succeeds with the alternative command provided.