OHIF / Viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
https://docs.ohif.org/
MIT License
3.08k stars 3.25k forks source link

error - yarn install #1926

Closed richsmith123 closed 4 years ago

richsmith123 commented 4 years ago

I download latest version from the website. Installed NODE.js (12.18.3 LTS) then installed YARN (1.22.4).

Ran: yarn config set workspaces-experimental true with success. When tried to run yarn install, got following error. Screen shot attached.

C:\Viewers-master\yarn install yarn install v1.22.4 $ yarn lerna:restore yarn run v1.22.4 $ [ $NETLIFY_RESTORE = 1 ] && ./netlify-lerna-restore.sh || : '[' is not recognized as an internal or external command, operable program or batch file. ':' is not recognized as an internal or external command, operable program or batch file. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

error Please let me know how to fix this?

Thank you so much!

swederik commented 4 years ago

Ah hmm this is my fault. That isn't supposed to be running locally unless that environment variable is true. I didn't test it on Windows though, so that's probably why this is an issue.

On Sat., Jul. 25, 2020, 7:18 p.m. richsmith123, notifications@github.com wrote:

I download latest version from the website. Installed NODE.js (12.18.3 LTS) then installed YARN (1.22.4).

Ran: yarn config set workspaces-experimental true with success. When tried to run yarn install, got following error. Screen shot attached.

C:\Viewers-master\yarn install yarn install v1.22.4 $ yarn lerna:restore yarn run v1.22.4 $ [ $NETLIFY_RESTORE = 1 ] && ./netlify-lerna-restore.sh || : '[' is not recognized as an internal or external command, operable program or batch file. ':' is not recognized as an internal or external command, operable program or batch file. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

[image: error] https://user-images.githubusercontent.com/23708609/88462430-ce3d3c00-ce70-11ea-951d-3d24d0d679c0.PNG Please let me know how to fix this?

Thank you so much!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OHIF/Viewers/issues/1926, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEUMMJC3Y357HUOFASYWPDR5MHUVANCNFSM4PHRUSTA .

richsmith123 commented 4 years ago

ha..ha..no worries. thank you for the quick reply.

I look forward to this fix.

Best regards,

richsmith123 commented 4 years ago

Hello,

Is there any quick fix to this issue? Maybe I need to wait until new code changes is applied...thought?

Thank you!

PoyangLiu commented 4 years ago

@richsmith123 , I just remove the "preinstall": "yarn lerna:restore" line for now until the core team do a proper fix.

richsmith123 commented 4 years ago

Thank you so much for quick reply!

Let me try this...

Best regards,

richsmith123 commented 4 years ago

Sorry Jay, which file do you remove "preinstall": "yarn lerna:restore" this line from?

Thank you!

PoyangLiu commented 4 years ago

The package.json at the root of the repo.

richsmith123 commented 4 years ago

Got it.

Appreciate very much for your assistance and quick response.

Best regards,

dannyrb commented 4 years ago

Long-term, the npm scripts need to be updated to work cross-platform. Short-term, @PoyangLiu's advice works well for local builds 👍

tbui2020 commented 4 years ago

Viewers-IDC-1958. (I tried the Master and it got the same error)

I got the same error. Followed @PoyangLiu's advice to remove "yarn lerna:restore". It then gave error on python. I installed python 3.8.5 for windows and tried again. And here's my error log. I need help please.

PS C:\Viewers-IDC-1958> yarn install yarn install v1.22.4 [1/5] Validating package.json... [2/5] Resolving packages... warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@^7.8.4" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@^7.9.6" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@7.1.2" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@^7.6.0" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@7.6.0" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@^7.6.3" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@^7.7.2" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@^7.8.7" [3/5] Fetching packages... info fsevents@1.2.9: The platform "win32" is incompatible with this module. info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation. info fsevents@2.1.1: The platform "win32" is incompatible with this module. info "fsevents@2.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. [4/5] Linking dependencies... warning " > @percy/cypress@2.2.0" has unmet peer dependency "cypress@^3". warning " > cypress-file-upload@3.5.3" has unmet peer dependency "cypress@^3.0.0". warning " > eslint-config-react-app@4.0.1" has unmet peer dependency "@typescript-eslint/eslint-plugin@1.x". warning " > eslint-config-react-app@4.0.1" has unmet peer dependency "@typescript-eslint/parser@1.x". warning " > eslint-config-react-app@4.0.1" has incorrect peer dependency "babel-eslint@10.x". warning " > @ohif/core@2.9.14" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/core@2.9.14" has unmet peer dependency "cornerstone-tools@4.15.1". warning " > @ohif/core@2.9.14" has unmet peer dependency "cornerstone-wado-image-loader@^3.1.0". warning " > @ohif/core@2.9.14" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/i18n@0.52.8" has unmet peer dependency "i18next@^17.0.3". warning " > @ohif/i18n@0.52.8" has unmet peer dependency "i18next-browser-languagedetector@^3.0.1". warning " > @ohif/i18n@0.52.8" has unmet peer dependency "react-i18next@^10.11.0". warning " > @ohif/ui@1.5.3" has incorrect peer dependency "@ohif/i18n@^0.2.3". warning " > @ohif/ui@1.5.3" has unmet peer dependency "i18next@^17.0.3". warning " > @ohif/ui@1.5.3" has unmet peer dependency "react-i18next@^10.11.0". warning " > @ohif/extension-cornerstone@2.8.5" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-cornerstone@2.8.5" has incorrect peer dependency "@ohif/ui@^0.50.0". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "cornerstone-math@^0.1.8". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "cornerstone-tools@4.15.1". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "cornerstone-wado-image-loader@^3.1.0". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "dcmjs@0.16.0". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "hammerjs@^2.0.8". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "react-redux@^6.0.0". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "react-resize-detector@^3.4.0". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "redux@^4.0.1". warning " > @ohif/extension-dicom-html@1.2.4" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-dicom-html@1.2.4" has unmet peer dependency "dcmjs@0.16.0". warning " > @ohif/extension-dicom-html@1.2.4" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/extension-dicom-microscopy@0.51.0" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-dicom-p10-downloader@0.1.2" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/extension-dicom-p10-downloader@0.1.2" has unmet peer dependency "dicomweb-client@^0.5.2". warning " > @ohif/extension-dicom-pdf@1.0.3" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-dicom-pdf@1.0.3" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/extension-dicom-pdf@1.0.3" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/extension-dicom-rt@0.2.7" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-dicom-rt@0.2.7" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/extension-dicom-rt@0.2.7" has unmet peer dependency "cornerstone-tools@4.15.1". warning " > @ohif/extension-dicom-rt@0.2.7" has unmet peer dependency "dcmjs@0.16.0". warning " > @ohif/extension-dicom-rt@0.2.7" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/extension-dicom-segmentation@0.3.4" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-dicom-segmentation@0.3.4" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/extension-dicom-segmentation@0.3.4" has unmet peer dependency "cornerstone-tools@4.15.1". warning " > @ohif/extension-dicom-segmentation@0.3.4" has unmet peer dependency "dcmjs@0.16.0". warning " > @ohif/extension-dicom-segmentation@0.3.4" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/extension-lesion-tracker@0.2.0" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-lesion-tracker@0.2.0" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/extension-vtk@1.6.10" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-vtk@1.6.10" has incorrect peer dependency "@ohif/i18n@^0.50.0". warning " > @ohif/extension-vtk@1.6.10" has incorrect peer dependency "@ohif/ui@^0.50.0". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "cornerstone-tools@4.15.1". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "cornerstone-wado-image-loader@^3.1.0". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "dcmjs@0.16.0". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "i18next@^17.0.3". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "i18next-browser-languagedetector@^3.0.1". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "prop-types@^15.7.2". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "react-i18next@^10.11.0". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "react-redux@^7.1.0". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "react-resize-detector@^4.2.0". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "redux@^4.0.1". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/i18n > react-i18next@10.13.2" has incorrect peer dependency "i18next@>= 17.0.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > react-dates@21.2.1" has incorrect peer dependency "react-with-direction@^1.3.1". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > react-transition-group@2.0.0" has incorrect peer dependency "react@^15.0.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > react-transition-group@2.0.0" has incorrect peer dependency "react-dom@^15.0.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/viewer > vtk.js@11.14.0" has unmet peer dependency "wslink@^0.1.8". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > react-cornerstone-viewport@4.0.1" has unmet peer dependency "cornerstone-core@2.3.x". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > react-cornerstone-viewport@4.0.1" has unmet peer dependency "cornerstone-math@0.1.x". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > react-cornerstone-viewport@4.0.1" has unmet peer dependency "cornerstone-tools@4.x.x". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > react-cornerstone-viewport@4.0.1" has unmet peer dependency "cornerstone-wado-image-loader@3.0.x". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > react-cornerstone-viewport@4.0.1" has unmet peer dependency "dicom-parser@^1.8.3". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > react-cornerstone-viewport@4.0.1" has unmet peer dependency "hammerjs@^2.0.8". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-vtk > react-vtkjs-viewport@0.9.0" has unmet peer dependency "vtk.js@^11.14.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > docz-plugin-css > docz-core > react-docgen-typescript-loader@3.7.1" has unmet peer dependency "typescript@*". [5/5] Building fresh packages... [6/14] ⠈ styled-components [2/14] ⠈ puppeteer [7/14] ⠈ cypress [4/14] ⠈ husky error C:\Viewers-IDC-1958\node_modules\node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: C:\Viewers-IDC-1958\node_modules\node-sass Output: Building: C:\Program Files\nodejs\node.exe C:\Viewers-IDC-1958\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp verb cli [ gyp verb cli 'C:\Program Files\nodejs\node.exe', gyp verb cli 'C:\Viewers-IDC-1958\node_modules\node-gyp\bin\node-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--verbose', gyp verb cli '--libsass_ext=', gyp verb cli '--libsass_cflags=', gyp verb cli '--libsass_ldflags=', gyp verb cli '--libsass_library=' gyp verb cli ] gyp info using node-gyp@3.8.0 gyp info using node@14.7.0 | win32 | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verb which failed Error: not found: python2 gyp verb which failed at getNotFoundError (C:\Viewers-IDC-1958\node_modules\which\which.js:13:12) gyp verb which failed at F (C:\Viewers-IDC-1958\node_modules\which\which.js:68:19) gyp verb which failed at E (C:\Viewers-IDC-1958\node_modules\which\which.js:80:29) gyp verb which failed at C:\Viewers-IDC-1958\node_modules\which\which.js:89:16 gyp verb which failed at C:\Viewers-IDC-1958\node_modules\isexe\index.js:42:5 gyp verb which failed at C:\Viewers-IDC-1958\node_modules\isexe\windows.js:36:5 gyp verb which failed at FSReqCallback.oncomplete (fs.js:176:21) gyp verb which failed python2 Error: not found: python2 gyp verb which failed at getNotFoundError (C:\Viewers-IDC-1958\node_modules\which\which.js:13:12) gyp verb which failed at F (C:\Viewers-IDC-1958\node_modules\which\which.js:68:19) gyp verb which failed at E (C:\Viewers-IDC-1958\node_modules\which\which.js:80:29) gyp verb which failed at C:\Viewers-IDC-1958\node_modules\which\which.js:89:16 gyp verb which failed at C:\Viewers-IDC-1958\node_modules\isexe\index.js:42:5 gyp verb which failed at C:\Viewers-IDC-1958\node_modules\isexe\windows.js:36:5 gyp verb which failed at FSReqCallback.oncomplete (fs.js:176:21) { gyp verb which failed code: 'ENOENT' gyp verb which failed } gyp verb check python checking for Python executable "python" in the PATH gyp verb which succeeded python C:\Program Files (x86)\Python38-32\python.EXE gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Program Files (x86)\Python38-32\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 (child_process.js:308:12) gyp ERR! stack at ChildProcess.emit (events.js:314:20) gyp ERR! stack at maybeClose (internal/child_process.js:1051:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) gyp ERR! System Windows_NT 10.0.18363 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Viewers-IDC-1958\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd C:\Viewers-IDC-1958\node_modules\node-sass gyp ERR! node -v v14.7.0 PS C:\Viewers-IDC-1958>

swederik commented 4 years ago

Can you try now? This should be fixed

taijizhao commented 3 years ago

Viewers-IDC-1958. (I tried the Master and it got the same error)

I got the same error. Followed @PoyangLiu's advice to remove "yarn lerna:restore". It then gave error on python. I installed python 3.8.5 for windows and tried again. And here's my error log. I need help please.

PS C:\Viewers-IDC-1958> yarn install yarn install v1.22.4 [1/5] Validating package.json... [2/5] Resolving packages... warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@^7.8.4" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@^7.9.6" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@7.1.2" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@^7.6.0" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@7.6.0" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@^7.6.3" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@^7.7.2" warning Resolution field "@babel/runtime@7.5.5" is incompatible with requested version "@babel/runtime@^7.8.7" [3/5] Fetching packages... info fsevents@1.2.9: The platform "win32" is incompatible with this module. info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation. info fsevents@2.1.1: The platform "win32" is incompatible with this module. info "fsevents@2.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. [4/5] Linking dependencies... warning " > @percy/cypress@2.2.0" has unmet peer dependency "cypress@^3". warning " > cypress-file-upload@3.5.3" has unmet peer dependency "cypress@^3.0.0". warning " > eslint-config-react-app@4.0.1" has unmet peer dependency "@typescript-eslint/eslint-plugin@1.x". warning " > eslint-config-react-app@4.0.1" has unmet peer dependency "@typescript-eslint/parser@1.x". warning " > eslint-config-react-app@4.0.1" has incorrect peer dependency "babel-eslint@10.x". warning " > @ohif/core@2.9.14" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/core@2.9.14" has unmet peer dependency "cornerstone-tools@4.15.1". warning " > @ohif/core@2.9.14" has unmet peer dependency "cornerstone-wado-image-loader@^3.1.0". warning " > @ohif/core@2.9.14" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/i18n@0.52.8" has unmet peer dependency "i18next@^17.0.3". warning " > @ohif/i18n@0.52.8" has unmet peer dependency "i18next-browser-languagedetector@^3.0.1". warning " > @ohif/i18n@0.52.8" has unmet peer dependency "react-i18next@^10.11.0". warning " > @ohif/ui@1.5.3" has incorrect peer dependency "@ohif/i18n@^0.2.3". warning " > @ohif/ui@1.5.3" has unmet peer dependency "i18next@^17.0.3". warning " > @ohif/ui@1.5.3" has unmet peer dependency "react-i18next@^10.11.0". warning " > @ohif/extension-cornerstone@2.8.5" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-cornerstone@2.8.5" has incorrect peer dependency "@ohif/ui@^0.50.0". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "cornerstone-math@^0.1.8". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "cornerstone-tools@4.15.1". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "cornerstone-wado-image-loader@^3.1.0". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "dcmjs@0.16.0". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "hammerjs@^2.0.8". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "react-redux@^6.0.0". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "react-resize-detector@^3.4.0". warning " > @ohif/extension-cornerstone@2.8.5" has unmet peer dependency "redux@^4.0.1". warning " > @ohif/extension-dicom-html@1.2.4" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-dicom-html@1.2.4" has unmet peer dependency "dcmjs@0.16.0". warning " > @ohif/extension-dicom-html@1.2.4" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/extension-dicom-microscopy@0.51.0" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-dicom-p10-downloader@0.1.2" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/extension-dicom-p10-downloader@0.1.2" has unmet peer dependency "dicomweb-client@^0.5.2". warning " > @ohif/extension-dicom-pdf@1.0.3" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-dicom-pdf@1.0.3" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/extension-dicom-pdf@1.0.3" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/extension-dicom-rt@0.2.7" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-dicom-rt@0.2.7" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/extension-dicom-rt@0.2.7" has unmet peer dependency "cornerstone-tools@4.15.1". warning " > @ohif/extension-dicom-rt@0.2.7" has unmet peer dependency "dcmjs@0.16.0". warning " > @ohif/extension-dicom-rt@0.2.7" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/extension-dicom-segmentation@0.3.4" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-dicom-segmentation@0.3.4" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/extension-dicom-segmentation@0.3.4" has unmet peer dependency "cornerstone-tools@4.15.1". warning " > @ohif/extension-dicom-segmentation@0.3.4" has unmet peer dependency "dcmjs@0.16.0". warning " > @ohif/extension-dicom-segmentation@0.3.4" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/extension-lesion-tracker@0.2.0" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-lesion-tracker@0.2.0" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/extension-vtk@1.6.10" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/extension-vtk@1.6.10" has incorrect peer dependency "@ohif/i18n@^0.50.0". warning " > @ohif/extension-vtk@1.6.10" has incorrect peer dependency "@ohif/ui@^0.50.0". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "cornerstone-tools@4.15.1". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "cornerstone-wado-image-loader@^3.1.0". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "dcmjs@0.16.0". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "i18next@^17.0.3". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "i18next-browser-languagedetector@^3.0.1". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "prop-types@^15.7.2". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "react-i18next@^10.11.0". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "react-redux@^7.1.0". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "react-resize-detector@^4.2.0". warning " > @ohif/extension-vtk@1.6.10" has unmet peer dependency "redux@^4.0.1". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/i18n > react-i18next@10.13.2" has incorrect peer dependency "i18next@>= 17.0.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > react-dates@21.2.1" has incorrect peer dependency "react-with-direction@^1.3.1". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > react-transition-group@2.0.0" has incorrect peer dependency "react@^15.0.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > react-transition-group@2.0.0" has incorrect peer dependency "react-dom@^15.0.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/viewer > vtk.js@11.14.0" has unmet peer dependency "wslink@^0.1.8". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > react-cornerstone-viewport@4.0.1" has unmet peer dependency "cornerstone-core@2.3.x". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > react-cornerstone-viewport@4.0.1" has unmet peer dependency "cornerstone-math@0.1.x". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > react-cornerstone-viewport@4.0.1" has unmet peer dependency "cornerstone-tools@4.x.x". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > react-cornerstone-viewport@4.0.1" has unmet peer dependency "cornerstone-wado-image-loader@3.0.x". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > react-cornerstone-viewport@4.0.1" has unmet peer dependency "dicom-parser@^1.8.3". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > react-cornerstone-viewport@4.0.1" has unmet peer dependency "hammerjs@^2.0.8". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-vtk > react-vtkjs-viewport@0.9.0" has unmet peer dependency "vtk.js@^11.14.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > docz-plugin-css > docz-core > react-docgen-typescript-loader@3.7.1" has unmet peer dependency "typescript@*". [5/5] Building fresh packages... [6/14] ⠈ styled-components [2/14] ⠈ puppeteer [7/14] ⠈ cypress [4/14] ⠈ husky error C:\Viewers-IDC-1958\node_modules\node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: C:\Viewers-IDC-1958\node_modules\node-sass Output: Building: C:\Program Files\nodejs\node.exe C:\Viewers-IDC-1958\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp verb cli [ gyp verb cli 'C:\Program Files\nodejs\node.exe', gyp verb cli 'C:\Viewers-IDC-1958\node_modules\node-gyp\bin\node-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--verbose', gyp verb cli '--libsass_ext=', gyp verb cli '--libsass_cflags=', gyp verb cli '--libsass_ldflags=', gyp verb cli '--libsass_library=' gyp verb cli ] gyp info using node-gyp@3.8.0 gyp info using node@14.7.0 | win32 | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verb which failed Error: not found: python2 gyp verb which failed at getNotFoundError (C:\Viewers-IDC-1958\node_modules\which\which.js:13:12) gyp verb which failed at F (C:\Viewers-IDC-1958\node_modules\which\which.js:68:19) gyp verb which failed at E (C:\Viewers-IDC-1958\node_modules\which\which.js:80:29) gyp verb which failed at C:\Viewers-IDC-1958\node_modules\which\which.js:89:16 gyp verb which failed at C:\Viewers-IDC-1958\node_modules\isexe\index.js:42:5 gyp verb which failed at C:\Viewers-IDC-1958\node_modules\isexe\windows.js:36:5 gyp verb which failed at FSReqCallback.oncomplete (fs.js:176:21) gyp verb which failed python2 Error: not found: python2 gyp verb which failed at getNotFoundError (C:\Viewers-IDC-1958\node_modules\which\which.js:13:12) gyp verb which failed at F (C:\Viewers-IDC-1958\node_modules\which\which.js:68:19) gyp verb which failed at E (C:\Viewers-IDC-1958\node_modules\which\which.js:80:29) gyp verb which failed at C:\Viewers-IDC-1958\node_modules\which\which.js:89:16 gyp verb which failed at C:\Viewers-IDC-1958\node_modules\isexe\index.js:42:5 gyp verb which failed at C:\Viewers-IDC-1958\node_modules\isexe\windows.js:36:5 gyp verb which failed at FSReqCallback.oncomplete (fs.js:176:21) { gyp verb which failed code: 'ENOENT' gyp verb which failed } gyp verb check python checking for Python executable "python" in the PATH gyp verb which succeeded python C:\Program Files (x86)\Python38-32\python.EXE gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Program Files (x86)\Python38-32\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 (child_process.js:308:12) gyp ERR! stack at ChildProcess.emit (events.js:314:20) gyp ERR! stack at maybeClose (internal/child_process.js:1051:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) gyp ERR! System Windows_NT 10.0.18363 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Viewers-IDC-1958\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd C:\Viewers-IDC-1958\node_modules\node-sass gyp ERR! node -v v14.7.0 PS C:\Viewers-IDC-1958>

Hi, @tbui2020 , I have got exactly the same problem as yours. Have you managed to solve it? Thank you very much!

PoyangLiu commented 3 years ago

@taijizhao , your problem is not specific to OHIF, but a problem with downloading and building node-sass on your platform. I saw this problem when working on another non-OHIF project a year or two ago on a Windows PC. It may be a mismatch between node.js version and the node-sass version that OHIF uses.

You'll have to google for a solution. One thing I tried in the past was to clear the node_modules, then manually install and rebuild node-sass. Once that worked, then npm install the rest of the OHIF dependencies.