Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM install fails on Windows #346

Open
OliverCullimore opened this issue Jul 27, 2024 · 0 comments
Open

NPM install fails on Windows #346

OliverCullimore opened this issue Jul 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@OliverCullimore
Copy link

Describe the bug
When running npm install bigscreen-player --save on Windows the following error appears:

$ npm install bigscreen-player --save
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c if [ -d .git/ ]; then husky install; fi
npm ERR! -d was unexpected at this time.

This was via Git Bash but as NPM runs via cmd the Bash -d directory exists check is unsupported.

Is the bug device specific?
Limited to Windows due to it's lack of bash script support.

Is this happening on Chrome?
N/A.

Is the bug consistenly reproducible?
Yes.

Have you seen this journey working before?
No, this was my first install of the package.

To Reproduce
Steps to reproduce the behavior:

  1. Open a Git Bash prompt on a Windows machine
  2. Run npm install bigscreen-player --save
  3. See error

Expected behavior
The package to install without any errors.

Screenshots
N/A

Device (please complete the following information):

  • Make/Model: Windows 10 Build 19045.4651
  • BSP Version 8.5.1

Additional context
Workaround found to allow install to complete found of adding --ignore-scripts to the command: npm install bigscreen-player --save --ignore-scripts but there may be other implications of doing this.

@OliverCullimore OliverCullimore added the bug Something isn't working label Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant