NPM install fails on Windows
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- build-system
調査の方向性
npm install のエラーに示されている、husky install を実行する npm ライフサイクルスクリプトから始めます。そのスクリプトが Bash ではなく Windows cmd でどのように動作するかを確認し、その後、npm install bigscreen-player --save が --ignore-scripts を必要とせずに Windows 上で正常に完了することを検証します。
索引モデルが issue の本文から書いたものです。
説明
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:
- Open a Git Bash prompt on a Windows machine
- Run
npm install bigscreen-player --save - 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.
- 主要言語
- JavaScript
- スター
- 108
- フォーク
- 18
- 平均マージ
- 1時間 30分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bbc/bigscreen-player のほかの issue
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
bbc/bigscreen-player#382 · リアクション 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
bbc/bigscreen-player#196 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
bbc/bigscreen-player#183 · コメント 6 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
bbc/bigscreen-player#124 · コメント 6 件 ·
-
Use audio tags for native audio content再び着手できるかも @jlks が 2500 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
bbc/bigscreen-player#115 · 担当者 1 名 ·
bbc/bigscreen-player の issue をすべて見る
似ている issue
-
from-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
andromarces/agent-loops#1928 ·
メンテナーはふだん 1 日以内に返信
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
laaielichter/AgentHaven#79 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
microsoft/playwright#44109 ·
メンテナーはふだん 1 日以内に返信
-
Intl spec updatesオープンContent:JS goal: up-to-date needs BCD update
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信