question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Powershell support

See original GitHub issue

Expected 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
tikurahulcommented, Jul 29, 2021

You can use WSL.

1reaction
brezelmancommented, Aug 11, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found