Azure / static-web-apps-cli

Azure Static Web Apps CLI ✨
https://aka.ms/swa/cli-local-development
MIT License
585 stars 112 forks source link

Cannot install by npm #687

Closed gyhyfj closed 1 year ago

gyhyfj commented 1 year ago

Cannot install by npm install -g @azure/static-web-apps-cli

Failed to remove some directories [
  ...
  ...
]
npm ERR! code 1
npm ERR! path C:\Users\gyhyf\AppData\Roaming\npm\node_modules\@azure\static-web-apps-cli\node_modules\keytar
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c prebuild-install || npm run build
npm ERR! > keytar@7.9.0 build
npm ERR! > node-gyp rebuild
npm ERR! prebuild-install warn install connect ECONNREFUSED 127.0.0.1:443
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@18.16.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.6 found at "C:\Users\gyhyf\AppData\Local\Programs\Python\Python310\python.exe"
npm ERR! gyp http GET https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz
npm ERR! gyp WARN install got an error, rolling back install
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack FetchError: request to https://nodejs.org/download/release/v18.16.0/node-v18.16.0-headers.tar.gz failed, reason: read ECONNRESET
npm ERR! gyp ERR! stack     at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\node_modules\minipass-fetch\lib\index.js:130:14)
npm ERR! gyp ERR! stack     at ClientRequest.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at TLSSocket.socketErrorListener (node:_http_client:502:9)
npm ERR! gyp ERR! stack     at TLSSocket.emit (node:events:525:35)
npm ERR! gyp ERR! stack     at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR! gyp ERR! stack     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR! gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
npm ERR! gyp ERR! System Windows_NT 10.0.19044
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\gyhyf\AppData\Roaming\npm\node_modules\@azure\static-web-apps-cli\node_modules\keytar
npm ERR! gyp ERR! node -v v18.16.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok
reddyeshwar17 commented 1 year ago

how did you resolve the issue. I am also getting the same issue..could you please help?

gyhyfj commented 1 year ago

how did you resolve the issue. I am also getting the same issue..could you please help?

I reinstall my win10, then install that success but still cannot work well as expected.

stu0292 commented 12 months ago

I am also experiencing this issue

vasanthtt commented 2 months ago

same with me

reddyeshwar17 commented 2 months ago

Please run powershell and Visual Studio in Admin mode and try to install..it works for me.

On Sat, May 4, 2024, 8:20 PM Vasanth TT @.***> wrote:

same with me

— Reply to this email directly, view it on GitHub https://github.com/Azure/static-web-apps-cli/issues/687#issuecomment-2094233640, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIQ2HZZWALV4EW66VIID373ZATYVDAVCNFSM6AAAAAAW6KA7WOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGIZTGNRUGA . You are receiving this because you commented.Message ID: @.***>