Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

error - yarn install

Open richsmith123 opened this issue 6 years ago • 13 comments

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!

richsmith123 avatar Jul 25 '20 17:07 richsmith123

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, [email protected] 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 .

swederik avatar Jul 25 '20 18:07 swederik

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

I look forward to this fix.

Best regards,

richsmith123 avatar Jul 25 '20 21:07 richsmith123

Hello,

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

Thank you!

richsmith123 avatar Jul 31 '20 15:07 richsmith123

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

PoyangLiu avatar Jul 31 '20 15:07 PoyangLiu

Thank you so much for quick reply!

Let me try this...

Best regards,

richsmith123 avatar Jul 31 '20 16:07 richsmith123

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

Thank you!

richsmith123 avatar Jul 31 '20 16:07 richsmith123

The package.json at the root of the repo.

PoyangLiu avatar Jul 31 '20 16:07 PoyangLiu

Got it.

Appreciate very much for your assistance and quick response.

Best regards,

richsmith123 avatar Jul 31 '20 17:07 richsmith123

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

dannyrb avatar Aug 12 '20 01:08 dannyrb

#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/[email protected]" is incompatible with requested version "@babel/runtime@^7.8.4" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/runtime@^7.9.6" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/[email protected]" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/runtime@^7.6.0" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/[email protected]" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/runtime@^7.6.3" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/runtime@^7.7.2" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/runtime@^7.8.7" [3/5] Fetching packages... info [email protected]: The platform "win32" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. info [email protected]: The platform "win32" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. [4/5] Linking dependencies... warning " > @percy/[email protected]" has unmet peer dependency "cypress@^3". warning " > [email protected]" has unmet peer dependency "cypress@^3.0.0". warning " > [email protected]" has unmet peer dependency "@typescript-eslint/[email protected]". warning " > [email protected]" has unmet peer dependency "@typescript-eslint/[email protected]". warning " > [email protected]" has incorrect peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-wado-image-loader@^3.1.0". warning " > @ohif/[email protected]" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/[email protected]" has unmet peer dependency "i18next@^17.0.3". warning " > @ohif/[email protected]" has unmet peer dependency "i18next-browser-languagedetector@^3.0.1". warning " > @ohif/[email protected]" has unmet peer dependency "react-i18next@^10.11.0". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/i18n@^0.2.3". warning " > @ohif/[email protected]" has unmet peer dependency "i18next@^17.0.3". warning " > @ohif/[email protected]" has unmet peer dependency "react-i18next@^10.11.0". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/ui@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-math@^0.1.8". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-wado-image-loader@^3.1.0". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/[email protected]" has unmet peer dependency "hammerjs@^2.0.8". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/[email protected]" has unmet peer dependency "react-redux@^6.0.0". warning " > @ohif/[email protected]" has unmet peer dependency "react-resize-detector@^3.4.0". warning " > @ohif/[email protected]" has unmet peer dependency "redux@^4.0.1". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/[email protected]" has unmet peer dependency "dicomweb-client@^0.5.2". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/i18n@^0.50.0". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/ui@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-wado-image-loader@^3.1.0". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/[email protected]" has unmet peer dependency "i18next@^17.0.3". warning " > @ohif/[email protected]" has unmet peer dependency "i18next-browser-languagedetector@^3.0.1". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.7.2". warning " > @ohif/[email protected]" has unmet peer dependency "react-i18next@^10.11.0". warning " > @ohif/[email protected]" has unmet peer dependency "react-redux@^7.1.0". warning " > @ohif/[email protected]" has unmet peer dependency "react-resize-detector@^4.2.0". warning " > @ohif/[email protected]" has unmet peer dependency "redux@^4.0.1". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/i18n > [email protected]" has incorrect peer dependency "i18next@>= 17.0.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > [email protected]" has incorrect peer dependency "react-with-direction@^1.3.1". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > [email protected]" has incorrect peer dependency "react@^15.0.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > [email protected]" has incorrect peer dependency "react-dom@^15.0.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/viewer > [email protected]" has unmet peer dependency "wslink@^0.1.8". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > [email protected]" has unmet peer dependency "[email protected]". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > [email protected]" has unmet peer dependency "[email protected]". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > [email protected]" has unmet peer dependency "[email protected]". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > [email protected]" has unmet peer dependency "[email protected]". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > [email protected]" has unmet peer dependency "dicom-parser@^1.8.3". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > [email protected]" has unmet peer dependency "hammerjs@^2.0.8". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-vtk > [email protected]" has unmet peer dependency "vtk.js@^11.14.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > docz-plugin-css > docz-core > [email protected]" 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 [email protected] gyp info using [email protected] | 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>

tbui2020 avatar Aug 12 '20 15:08 tbui2020

Can you try now? This should be fixed

swederik avatar Aug 19 '20 09:08 swederik

#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/[email protected]" is incompatible with requested version "@babel/runtime@^7.8.4" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/runtime@^7.9.6" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/[email protected]" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/runtime@^7.6.0" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/[email protected]" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/runtime@^7.6.3" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/runtime@^7.7.2" warning Resolution field "@babel/[email protected]" is incompatible with requested version "@babel/runtime@^7.8.7" [3/5] Fetching packages... info [email protected]: The platform "win32" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. info [email protected]: The platform "win32" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. [4/5] Linking dependencies... warning " > @percy/[email protected]" has unmet peer dependency "cypress@^3". warning " > [email protected]" has unmet peer dependency "cypress@^3.0.0". warning " > [email protected]" has unmet peer dependency "@typescript-eslint/[email protected]". warning " > [email protected]" has unmet peer dependency "@typescript-eslint/[email protected]". warning " > [email protected]" has incorrect peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-wado-image-loader@^3.1.0". warning " > @ohif/[email protected]" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/[email protected]" has unmet peer dependency "i18next@^17.0.3". warning " > @ohif/[email protected]" has unmet peer dependency "i18next-browser-languagedetector@^3.0.1". warning " > @ohif/[email protected]" has unmet peer dependency "react-i18next@^10.11.0". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/i18n@^0.2.3". warning " > @ohif/[email protected]" has unmet peer dependency "i18next@^17.0.3". warning " > @ohif/[email protected]" has unmet peer dependency "react-i18next@^10.11.0". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/ui@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-math@^0.1.8". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-wado-image-loader@^3.1.0". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/[email protected]" has unmet peer dependency "hammerjs@^2.0.8". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/[email protected]" has unmet peer dependency "react-redux@^6.0.0". warning " > @ohif/[email protected]" has unmet peer dependency "react-resize-detector@^3.4.0". warning " > @ohif/[email protected]" has unmet peer dependency "redux@^4.0.1". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/[email protected]" has unmet peer dependency "dicomweb-client@^0.5.2". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.6.2". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/core@^0.50.0". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/i18n@^0.50.0". warning " > @ohif/[email protected]" has incorrect peer dependency "@ohif/ui@^0.50.0". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-core@^2.2.8". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "cornerstone-wado-image-loader@^3.1.0". warning " > @ohif/[email protected]" has unmet peer dependency "[email protected]". warning " > @ohif/[email protected]" has unmet peer dependency "dicom-parser@^1.8.3". warning " > @ohif/[email protected]" has unmet peer dependency "i18next@^17.0.3". warning " > @ohif/[email protected]" has unmet peer dependency "i18next-browser-languagedetector@^3.0.1". warning " > @ohif/[email protected]" has unmet peer dependency "prop-types@^15.7.2". warning " > @ohif/[email protected]" has unmet peer dependency "react-i18next@^10.11.0". warning " > @ohif/[email protected]" has unmet peer dependency "react-redux@^7.1.0". warning " > @ohif/[email protected]" has unmet peer dependency "react-resize-detector@^4.2.0". warning " > @ohif/[email protected]" has unmet peer dependency "redux@^4.0.1". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/i18n > [email protected]" has incorrect peer dependency "i18next@>= 17.0.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > [email protected]" has incorrect peer dependency "react-with-direction@^1.3.1". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > [email protected]" has incorrect peer dependency "react@^15.0.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > [email protected]" has incorrect peer dependency "react-dom@^15.0.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/viewer > [email protected]" has unmet peer dependency "wslink@^0.1.8". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > [email protected]" has unmet peer dependency "[email protected]". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > [email protected]" has unmet peer dependency "[email protected]". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > [email protected]" has unmet peer dependency "[email protected]". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > [email protected]" has unmet peer dependency "[email protected]". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > [email protected]" has unmet peer dependency "dicom-parser@^1.8.3". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-cornerstone > [email protected]" has unmet peer dependency "hammerjs@^2.0.8". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/extension-vtk > [email protected]" has unmet peer dependency "vtk.js@^11.14.0". warning "workspace-aggregator-2c05957e-2802-4fd1-b803-bef69c590bdc > @ohif/ui > docz-plugin-css > docz-core > [email protected]" 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 [email protected] gyp info using [email protected] | 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!

taijizhao avatar Nov 15 '20 03:11 taijizhao

@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.

PoyangLiu avatar Nov 15 '20 18:11 PoyangLiu