MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.27k stars 21.46k forks source link

Command createProject has failed. Failed to run command - npx truffle unbox Azure-Samples/Blockchain-Ethereum-Template. #75001

Closed sudhir-kumar-au3 closed 3 years ago

sudhir-kumar-au3 commented 3 years ago

I am trying to create new solidity project using Blockchain Development Kit for Ethereum. (Took reference from Exercise - Install the Blockchain Development Kit for Ethereum) Running following - npx truffle unbox Azure-Samples/Blockchain-Ethereum-Template in terminal is giving me this error.

√ Preparing to download box
√ Downloading
npm ERR! code 128
npm ERR! command failed
npm ERR! command git ls-remote ssh://git@github.com/web3-js/WebSocket-Node.git
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\sudhi\AppData\Local\npm-cache\_logs\2021-05-08T15_25_20_249Z-debug.log
√ Cleaning up temporary files
× Setting up box
Unbox failed!
× Setting up box
Unbox failed!
Error: Command failed: npm install
npm ERR! code 128
npm ERR! command failed
npm ERR! command git ls-remote ssh://git@github.com/web3-js/WebSocket-Node.git
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\sudhi\AppData\Local\npm-cache\_logs\2021-05-08T15_25_20_249Z-debug.log

    at checkExecSyncError (child_process.js:635:11)
    at Object.execSync (child_process.js:671:15)
    at Object.installBoxDependencies (C:\Users\sudhi\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\box\dist\lib\utils\unbox.js:136:1)
    at Object.setUpBox (C:\Users\sudhi\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\box\dist\lib\utils\index.js:66:1)
    at C:\Users\sudhi\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\box\dist\box.js:116:1
    at Generator.next (<anonymous>)
    at fulfilled (C:\Users\sudhi\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\box\dist\box.js:5:42)
Node v12.19.0
JayaChatterjee-MSFT commented 3 years ago

@sudhir-kumar-au3 Thank you for your feedback! Could you please share the document link you are referring to?

sudhir-kumar-au3 commented 3 years ago

Here is the link which I referred. https://docs.microsoft.com/en-us/learn/modules/blockchain-solidity-ethereum-smart-contracts/3-blockchain-dev-kit

SatishBoddu-MSFT commented 3 years ago

Hello @sudhir-kumar-au3 Sorry for the delay in response, as the issue is related to the MS learn page, we have a dedicated team to help with fixing the content. Go to the bottom of the MS learn page and click the 'Reporting an issue' link

image

Fill in the feedback form and submit it.

image

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Please also do visit Microsoft Q&A the home for technical questions and answers at Microsoft. Please make use of Microsoft Q&A to post further technical questions.

Liathakral commented 1 year ago

Command createProject has failed. Failed to run command - npx truffle unbox truffle-box/vscode-starter-box. More details in output. source: Truffle for VS Code getting this error message when trying to create a new sample solidity project from command palette using extensaion Truffle for VS Code