felixrieseberg / windows-build-tools

:package: Install C++ Build Tools for Windows using npm
MIT License
3.4k stars 237 forks source link

install fail with Windows account profile space #241

Closed CloudBreadPaPa closed 3 years ago

CloudBreadPaPa commented 3 years ago

Subject : install fail with Windows account profile space

Symptom : install fail

Reproduce : yes

Error code : npm ERR! code 1

C:\project\dw-node-bot>npm install -g windows-build-tools
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path C:\Users\dae woo kim\AppData\Roaming\npm\node_modules\windows-build-tools
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./dist/index.js
Downloading python-2.7.15.amd64.msi
npm ERR! [============================================>] 100.0% of 20.25 MB (2.53 MB/s)
npm ERR! Downloaded python-2.7.15.amd64.msi. Saved to C:\Users\dae woo kim\.windows-build-tools\python-2.7.15.amd64.msi.
Downloading vs_BuildTools.exe
npm ERR! [============================================>] 100.0% of 1.12 MB (895.88 kB/s)
npm ERR! Downloaded vs_BuildTools.exe. Saved to C:\Users\dae woo kim\.windows-build-tools\vs_BuildTools.exe.
npm ERR!
npm ERR! Starting installation...
npm ERR! Please restart this script from an administrative PowerShell!
npm ERR! The build tools cannot be installed without administrative rights.
npm ERR! To fix, right-click on PowerShell and run "as Administrator".

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\dae woo kim\AppData\Local\npm-cache\_logs\2021-03-26T00_19_01_232Z-debug.log

full log file :

...
847 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dae woo kim\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "windows-build-tools"
848 verbose node v14.15.4
849 verbose npm  v7.7.5
850 error code 1
851 error path C:\Users\dae woo kim\AppData\Roaming\npm\node_modules\windows-build-tools
852 error command failed
853 error command C:\WINDOWS\system32\cmd.exe /d /s /c node ./dist/index.js
854 error Downloading python-2.7.15.amd64.msi
...
CloudBreadPaPa commented 3 years ago

Sorry for that. "after run as administrator", issue fixed.