mathlive icon indicating copy to clipboard operation
mathlive copied to clipboard

NPM CI fails when following CONTRIBUTOR_GUIDE.md

Open huzailhassan opened this issue 3 years ago • 1 comments

Description

Hello, I am trying to follow the CONTRIBUTOR_GUIDE.md file. I am trying to execute "npm ci" even with admin privieleges, I am getting the following error:

PS C:\Users\huzai\Documents\Webstorm Projects\mathlive2\mathlive> npm ci
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN deprecated [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility

> [email protected] prepare
> bash ./scripts/build.sh production

': No such file or directory
npm ERR! code 127
npm ERR! path C:\Users\huzai\Documents\Webstorm Projects\mathlive2\mathlive
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c bash ./scripts/build.sh production

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\huzai\AppData\Local\npm-cache\_logs\2022-09-13T01_29_28_650Z-debug-0.log
PS C:\Users\huzai\Documents\Webstorm Projects\mathlive2\mathlive>  

Steps to Reproduce

  1. git clone https://github.com/arnog/mathlive
  2. run "cd mathlive"
  3. run "npm ci" with admin privileges.

Mathlive version: 0.79

huzailhassan avatar Sep 13 '22 01:09 huzailhassan

It looks like you may not have the bash shell installed. It should be here: C:\Program Files\git\bin\bash.exe or C:\Program Files (x86)\git\bin\bash.exe. You may need to install (or re-install?) git: https://git-scm.com/downloads

arnog avatar Sep 13 '22 02:09 arnog

No activity in two weeks. Closing, but please re-open if you still have issues.

arnog avatar Sep 26 '22 15:09 arnog