You need to sign in to do that
Don't have an account?
suji srinivasan
Hi,
npm and node are installed succesfully .
i confirmed its installation in command prompt
npm -8.11.0
node -v16.16.0
then i ran this command in vscode to install packages -------->npm install -g node-gyp -------> got 0 vulnerabilities.
unable to install npm install -g windows-build-tools
got following error
PS C:\Users\Sujis\Desktop\VScode\Hello world> npm install -g windows-build-tools
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated windows-build-tools@5.2.2: Node.js now includes build tools for Windows. You probably
no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details.
npm ERR! code 1
npm ERR! path C:\Users\Sujis\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! [> ] 0.0% (0 B/s)
npm ERR! Downloaded python-2.7.15.amd64.msi. Saved to C:\Users\Sujis\.windows-build-tools\python-2.7.15.amd64.msi.
Downloading vs_BuildTools.exe
npm ERR! [> ] 0.0% (0 B/s)
npm ERR! Downloaded vs_BuildTools.exe. Saved to C:\Users\Sujis\.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\Sujis\AppData\Local\npm-cache\_logs\2022-08-06T05_52_30_343Z-debug-0.log
PS C:\Users\Sujis\Desktop\VScode\Hello world>
can anyone suggest me what needs to be done ?
How to install npm-build -tools in vscode for lwc dev server ?
Hi,
npm and node are installed succesfully .
i confirmed its installation in command prompt
npm -8.11.0
node -v16.16.0
then i ran this command in vscode to install packages -------->npm install -g node-gyp -------> got 0 vulnerabilities.
unable to install npm install -g windows-build-tools
got following error
PS C:\Users\Sujis\Desktop\VScode\Hello world> npm install -g windows-build-tools
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated windows-build-tools@5.2.2: Node.js now includes build tools for Windows. You probably
no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details.
npm ERR! code 1
npm ERR! path C:\Users\Sujis\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! [> ] 0.0% (0 B/s)
npm ERR! Downloaded python-2.7.15.amd64.msi. Saved to C:\Users\Sujis\.windows-build-tools\python-2.7.15.amd64.msi.
Downloading vs_BuildTools.exe
npm ERR! [> ] 0.0% (0 B/s)
npm ERR! Downloaded vs_BuildTools.exe. Saved to C:\Users\Sujis\.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\Sujis\AppData\Local\npm-cache\_logs\2022-08-06T05_52_30_343Z-debug-0.log
PS C:\Users\Sujis\Desktop\VScode\Hello world>
can anyone suggest me what needs to be done ?
Came across this reported issue on GIT that could help you
See https://github.com/felixrieseberg/windows-build-tools/issues/20#issuecomment-863649424
Can you try the steps mentioned in the above link and see if it fixes the issue? Thanks