Skip to content

NPM install fails on Windows #346

@OliverCullimore

Description

@OliverCullimore

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions