label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

Local docs build on Mac OS Monterey fails

Open henrykironde opened this issue 3 years ago • 1 comments

Describe the bug

Building docs fails on Mac OS Monterey version 12.4
Python version 3.8
npm 8.15.0 

It looks like a dependency problem (backward compatibility issues).

To Reproduce

(ver3.8) ➜  docs git:(develop) ✗ npm -v     
8.15.0
(ver3.8) ➜  docs git:(develop) ✗ npm install

up to date, audited 322 packages in 702ms

11 packages are looking for funding
  run `npm fund` for details

13 vulnerabilities (3 moderate, 7 high, 3 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
(ver3.8) ➜  docs git:(develop) ✗ npm audit fix --force
npm WARN using --force Recommended protections disabled.
npm WARN audit Updating hexo-renderer-marked to 5.0.0, which is a SemVer major change.
npm WARN audit No fix available for hexo-admonition@*
npm WARN audit Updating hexo-renderer-ejs to 2.0.0, which is a SemVer major change.

added 53 packages, removed 7 packages, changed 51 packages, and audited 368 packages in 14s

48 packages are looking for funding
  run `npm fund` for details

# npm audit report

markdown-it  <12.3.2
Severity: moderate
Uncontrolled Resource Consumption in markdown-it - https://github.com/advisories/GHSA-6vfc-qv3f-vr6c
No fix available
node_modules/markdown-it
  hexo-admonition  *
  Depends on vulnerable versions of markdown-it
  node_modules/hexo-admonition

2 moderate severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.
(ver3.8) ➜  docs git:(develop) ✗          

Expected behavior A clear and concise description of what you expected to happen.

Environment (please complete the following information):

  • OS: iOS
  • Label Studio Version: develop commit ad298047312123e2fb781cd6
  • npm -v : *8.15.0
(ver3.8) ➜  docs git:(develop) ✗ npm run server       

> [email protected] server
> hexo clean && touch db.json && hexo serve

INFO  Validating config
FATAL Error: [hexo-include-markdown] Could not open db.json .
    at ReadFileContext.callback (/Users/henrysenyondo/Downloads/label-studio/docs/node_modules/hexo-include-markdown/lib/orverwriteCache.js:22:15)
    at FSReqCallback.readFileAfterOpen [as oncomplete] (node:fs:328:13)
(ver3.8) ➜  docs git:(develop) ✗ 

henrykironde avatar Aug 23 '22 18:08 henrykironde

@henrykironde try to run it using npm == 7.21.0 and node == v16.8.0, it's definitely an environment problem.

makseq avatar Aug 26 '22 23:08 makseq

Closed as unanswered.

makseq avatar Mar 19 '23 03:03 makseq