Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error while setting up project #172

Open
SyedImam1998 opened this issue May 26, 2023 · 10 comments
Open

Getting Error while setting up project #172

SyedImam1998 opened this issue May 26, 2023 · 10 comments

Comments

@SyedImam1998
Copy link

Hi team,

I am trying to setup the project but i am getting this error while give cmd:
yarn install

Error:
image

@janrtvld
Copy link
Contributor

Hi! It looks like it cannot find libindy. This is a native library required for hosting the demo.

Hopefully this guide can help you: https://aries.js.org/guides/getting-started/installation/nodejs

@SyedImam1998
Copy link
Author

Hey @janrxyz ,

I followed all steps that were mentioned but still getting error.

Step-1: Node Setup:

image

Step-2: Npm / Yarn Setup:

image

Step-3: Download Indy-sdk and Adding Path

image

image

Step-4: Confirm installation

run cmd;
npx -p @aries-framework/node@^0.3 is-indy-installed

I ran it....

when i tried to give same cmd it is asking me install again. But Y again...?

image

@janrtvld
Copy link
Contributor

You installed Libindy, the underlying package needed to run AFJ. If you run the final command, it installs AFJ and checks if Libindy installation has succeeded.

@SyedImam1998
Copy link
Author

I am getting this error when i gave yarn install can some one help me

yarn install
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @lensesio/[email protected]" has incorrect peer dependency "rxjs@^6.5.0".
warning "eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
warning "eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-transform-react-jsx@^7.14.9".
warning "workspace-aggregator-fc13f99e-a41a-44a9-977d-444e91fd4d5b > client > [email protected]" has incorrect peer dependency "react@^15.5.3 || ^16.0.0 || ^17.0.0".
warning "workspace-aggregator-fc13f99e-a41a-44a9-977d-444e91fd4d5b > client > [email protected]" has unmet peer dependency "webpack@^5.0.0".
warning "workspace-aggregator-fc13f99e-a41a-44a9-977d-444e91fd4d5b > server > [email protected]" has unmet peer dependency "class-transformer@^0.3.1".
warning "workspace-aggregator-fc13f99e-a41a-44a9-977d-444e91fd4d5b > server > [email protected]" has unmet peer dependency "class-validator@^0.12.2".
warning "workspace-aggregator-fc13f99e-a41a-44a9-977d-444e91fd4d5b > client > kbar > @reach/[email protected]" has incorrect peer dependency "react@^16.8.0 || 17.x".
warning "workspace-aggregator-fc13f99e-a41a-44a9-977d-444e91fd4d5b > client > kbar > @reach/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || 17.x".
warning "workspace-aggregator-fc13f99e-a41a-44a9-977d-444e91fd4d5b > client > kbar > [email protected]" has incorrect peer dependency "react@^16.6.3 || ^17.0.0".
warning "workspace-aggregator-fc13f99e-a41a-44a9-977d-444e91fd4d5b > server > ts-node-dev > [email protected]" has unmet peer dependency "@types/node@*".
warning "workspace-aggregator-fc13f99e-a41a-44a9-977d-444e91fd4d5b > client > kbar > @reach/portal > @reach/[email protected]" has incorrect peer dependency "react@^16.8.0 || 17.x".
warning "workspace-aggregator-fc13f99e-a41a-44a9-977d-444e91fd4d5b > client > kbar > @reach/portal > @reach/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || 17.x".
[4/4] Building fresh packages...
[-/7] ⠁ waiting...
[-/7] ⠁ waiting...
[-/7] ⠂ waiting...
[-/7] ⠂ waiting...
error C:\Users\ACER\Desktop\animo-demo\node_modules\indy-sdk: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: C:\Users\ACER\Desktop\animo-demo\node_modules\indy-sdk
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.11.3 found at "C:\Users\ACER\AppData\Local\Programs\Python\Python311\python.exe"
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS checking VS2022 (17.6.33723.286) found at:
gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - found VC++ toolset: v143
gyp ERR! find VS - missing any Windows SDK
gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack     at VisualStudioFinder.fail (C:\Users\ACER\Desktop\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
gyp ERR! stack     at C:\Users\ACER\Desktop\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:75:16
gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (C:\Users\ACER\Desktop\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:363:14)
gyp ERR! stack     at C:\Users\ACER\Desktop\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:71:14
gyp ERR! stack     at C:\Users\ACER\Desktop\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:384:16
gyp ERR! stack     at C:\Users\ACER\Desktop\animo-demo\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack     at C:\Users\ACER\Desktop\animo-demo\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack     at ChildProcess.exithandler (node:child_process:427:5)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at maybeClose (node:internal/child_process:1091:16)
gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
gyp ERR! System Windows_NT 10.0.19045
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ACER\\Desktop\\animo-demo\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\ACER\Desktop\animo-demo\node_modules\indy-sdk

@janrtvld
Copy link
Contributor

You need to follow the steps from the stacktrace: https://github.com/nodejs/node-gyp#on-windows

@SyedImam1998
Copy link
Author

I have followed it and installed the Desktop with C++ in visual Studio 2019 but still getting the same error.

@janrtvld
Copy link
Contributor

Have you tried reinstalling the dependencies and/or re-creating the yarn.lock after your changes? Make sure that it refers to the most recent installation of visual studio.

@SyedImam1998
Copy link
Author

I have re-cloned the repo. I am getting the same error.

D:\animo-demo\client> yarn install
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @lensesio/[email protected]" has incorrect peer dependency "rxjs@^6.5.0".
warning "eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
warning "eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-transform-react-jsx@^7.14.9".
warning "workspace-aggregator-26b36de9-dfe3-4906-b3a8-31bbb530ba97 > client > [email protected]" has incorrect peer dependency "react@^15.5.3 || ^16.0.0 || ^17.0.0".
warning "workspace-aggregator-26b36de9-dfe3-4906-b3a8-31bbb530ba97 > client > [email protected]" has unmet peer dependency "webpack@^5.0.0".
warning "workspace-aggregator-26b36de9-dfe3-4906-b3a8-31bbb530ba97 > server > [email protected]" has unmet peer dependency "class-transformer@^0.3.1".
warning "workspace-aggregator-26b36de9-dfe3-4906-b3a8-31bbb530ba97 > server > [email protected]" has unmet peer dependency "class-validator@^0.12.2".
warning "workspace-aggregator-26b36de9-dfe3-4906-b3a8-31bbb530ba97 > client > kbar > @reach/[email protected]" has incorrect peer dependency "react@^16.8.0 || 17.x".
warning "workspace-aggregator-26b36de9-dfe3-4906-b3a8-31bbb530ba97 > client > kbar > @reach/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || 17.x".
warning "workspace-aggregator-26b36de9-dfe3-4906-b3a8-31bbb530ba97 > client > kbar > [email protected]" has incorrect peer dependency "react@^16.6.3 || ^17.0.0".
warning "workspace-aggregator-26b36de9-dfe3-4906-b3a8-31bbb530ba97 > server > ts-node-dev > [email protected]" has unmet peer dependency "@types/node@*".
warning "workspace-aggregator-26b36de9-dfe3-4906-b3a8-31bbb530ba97 > client > kbar > @reach/portal > @reach/[email protected]" has incorrect peer dependency "react@^16.8.0 || 17.x".
warning "workspace-aggregator-26b36de9-dfe3-4906-b3a8-31bbb530ba97 > client > kbar > @reach/portal > @reach/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || 17.x".
[4/4] Building fresh packages...
[-/7] ⠈ waiting...
[-/7] ⠈ waiting...
[-/7] ⠈ waiting...
[7/7] ⠁ ffi-napi
error D:\animo-demo\node_modules\indy-sdk: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: D:\animo-demo\node_modules\indy-sdk
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.11.3 found at "C:\Users\ACER\AppData\Local\Programs\Python\Python311\python.exe"
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS checking VS2022 (17.6.33723.286) found at:
gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - found VC++ toolset: v143
gyp ERR! find VS - missing any Windows SDK
gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack     at VisualStudioFinder.fail (D:\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
gyp ERR! stack     at D:\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:75:16
gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (D:\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:363:14)
gyp ERR! stack     at D:\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:71:14
gyp ERR! stack     at D:\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:384:16
gyp ERR! stack     at D:\animo-demo\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack     at D:\animo-demo\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack     at ChildProcess.exithandler (node:child_process:427:5)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at maybeClose (node:internal/child_process:1091:16)
gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
gyp ERR! System Windows_NT 10.0.19045
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\animo-demo\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\animo-demo\node_modules\indy-sdk

@janrtvld
Copy link
Contributor

janrtvld commented Jun 6, 2023

Could you run npm config set msvs_version 2019 --global? NPM is probably not able to locate the correct Visual Studio installation.

@SyedImam1998
Copy link
Author

Could you run npm config set msvs_version 2019 --global? NPM is probably not able to locate the correct Visual Studio installation.

Hey @janrxyz I have done it but got same error.

PS D:\animo-demo> npm config set msvs_version 2019 --global
PS D:\animo-demo> yarn install
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @lensesio/[email protected]" has incorrect peer dependency "rxjs@^6.5.0".
warning "eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
warning "eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-transform-react-jsx@^7.14.9".
warning "workspace-aggregator-6e603cfe-9ece-4055-b3fc-c81adfb05365 > client > [email protected]" has incorrect peer dependency "react@^15.5.3 || ^16.0.0 || ^17.0.0".
warning "workspace-aggregator-6e603cfe-9ece-4055-b3fc-c81adfb05365 > client > [email protected]" has unmet peer dependency "webpack@^5.0.0".
warning "workspace-aggregator-6e603cfe-9ece-4055-b3fc-c81adfb05365 > server > [email protected]" has unmet peer dependency "class-transformer@^0.3.1".
warning "workspace-aggregator-6e603cfe-9ece-4055-b3fc-c81adfb05365 > server > [email protected]" has unmet peer dependency "class-validator@^0.12.2".
warning "workspace-aggregator-6e603cfe-9ece-4055-b3fc-c81adfb05365 > client > kbar > @reach/[email protected]" has incorrect peer dependency "react@^16.8.0 || 17.x".
warning "workspace-aggregator-6e603cfe-9ece-4055-b3fc-c81adfb05365 > client > kbar > @reach/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || 17.x".
warning "workspace-aggregator-6e603cfe-9ece-4055-b3fc-c81adfb05365 > client > kbar > [email protected]" has incorrect peer dependency "react@^16.6.3 || ^17.0.0".
warning "workspace-aggregator-6e603cfe-9ece-4055-b3fc-c81adfb05365 > server > ts-node-dev > [email protected]" has unmet peer dependency "@types/node@*".
warning "workspace-aggregator-6e603cfe-9ece-4055-b3fc-c81adfb05365 > client > kbar > @reach/portal > @reach/[email protected]" has incorrect peer dependency "react@^16.8.0 || 17.x".
warning "workspace-aggregator-6e603cfe-9ece-4055-b3fc-c81adfb05365 > client > kbar > @reach/portal > @reach/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || 17.x".
[4/4] Building fresh packages...
[-/7] ⠁ waiting...
[-/7] ⠁ waiting...
[-/7] ⠁ waiting...
[7/7] ⠁ ffi-napi
error D:\animo-demo\node_modules\indy-sdk: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: D:\animo-demo\node_modules\indy-sdk
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 3.11.3 found at "C:\Users\ACER\AppData\Local\Programs\Python\Python311\python.exe"
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS checking VS2022 (17.6.33723.286) found at:
gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
gyp ERR! find VS - found "Visual Studio C++ core features"
gyp ERR! find VS - found VC++ toolset: v143
gyp ERR! find VS - missing any Windows SDK
gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack     at VisualStudioFinder.fail (D:\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
gyp ERR! stack     at D:\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:75:16
gyp ERR! stack     at VisualStudioFinder.findVisualStudio2013 (D:\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:363:14)
gyp ERR! stack     at D:\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:71:14
gyp ERR! stack     at D:\animo-demo\node_modules\node-gyp\lib\find-visualstudio.js:384:16
gyp ERR! stack     at D:\animo-demo\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack     at D:\animo-demo\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack     at ChildProcess.exithandler (node:child_process:427:5)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at maybeClose (node:internal/child_process:1091:16)
gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
gyp ERR! System Windows_NT 10.0.19045
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\animo-demo\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\animo-demo\node_modules\indy-sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants