microsoft / OCR-Form-Tools

A set of tools to use in Microsoft Azure Form Recognizer and OCR services.
MIT License
511 stars 174 forks source link

error OCR-Form-Tools\node_modules\node-sass: Command failed. #903

Open ArunP-AtreyaLabs opened 3 years ago

ArunP-AtreyaLabs commented 3 years ago

Describe the bug error C:\Users\user\Downloads\OCR-Form-Tools\OCR-Form-Tools\node_modules\node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: C:\Users\user\Downloads\OCR-Form-Tools\OCR-Form-Tools\node_modules\node-sass Output: Building: C:\Program Files\nodejs\node.exe C:\Users\user\Downloads\OCR-Form-Tools\OCR-Form-Tools\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

To Reproduce Steps to reproduce the behavior:

on windows

  1. yarn install
  2. See error

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

Screenshots image

Desktop (please complete the following information):

Additional context

gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Users\user\AppData\Local\Programs\Python\Python39\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (node:child_process:326:12) gyp ERR! stack at ChildProcess.emit (node:events:369:20) gyp ERR! stack at maybeClose (node:internal/child_process:1067:16) gyp ERR! stack at Socket. (node:internal/child_process:453:11) gyp ERR! stack at Socket.emit (node:events:369:20) gyp ERR! stack at Pipe. (node:net:665:12) gyp ERR! System Windows_NT 10.0.10240 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\user\Downloads\OCR-Form-Tools\OCR-Form-Tools\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd C:\Users\user\Downloads\OCR-Form-Tools\OCR-Form-Tools\node_modules\node-sass gyp ERR! node -v v15.12.0

jhapran commented 2 years ago

I am also facing the same issue. Anyone looking into it ?

uthaii66 commented 2 years ago

I am also facing the same issue. Anyone looking into it ?

l1lan commented 1 year ago

use yarn add node-sass