forcedotcom / cli

Salesforce CLI
https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/
BSD 3-Clause "New" or "Revised" License
491 stars 78 forks source link

Failed to download lwc-dev-server plugin #2812

Closed ptlSathyanarayanan closed 5 months ago

ptlSathyanarayanan commented 5 months ago

I have been trying to download lwc plugin but, facing multiple issues with the plugin. WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN

deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated @oclif/screen@1.0.4: Deprecated in favor of @oclif/core npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead npm

WARN

deprecated rollup-plugin-replace@2.2.0: This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained. npm WARN deprecated domexception@1.0.1: Use your platform's native DOMException instead npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm

WARN

deprecated rollup-plugin-node-resolve@4.2.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve. npm

WARN

deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm

WARN

deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. npm WARN deprecated @oclif/command@1.8.36: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm

WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. npm WARN deprecated @oclif/help@1.0.15: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. 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 uuid@3.3.3: 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 rollup-plugin-commonjs@9.3.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs.
npm

WARN

deprecated @salesforce/command@3.1.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm

WARN

deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated @oclif/errors@1.3.6: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated uuid@3.3.2: 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 @oclif/config@1.18.17: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated @oclif/config@1.18.16: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm

WARN

deprecated @oclif/parser@3.8.17: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated cli-ux@4.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated @lwc/engine@1.2.2: Use @lwc/engine-dom instead npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x. npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. npm WARN cleanup Failed to remove some directories [ npm WARN cleanup [ npm WARN cleanup 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\rxjs', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\rxjs\internal\observable'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\rxjs\internal\observable' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\jsdom\lib\jsdom\living\nodes'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\jsdom\lib\jsdom\living\nodes' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\jsdom', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\jsdom\lib\jsdom\living\generated'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\jsdom\lib\jsdom\living\generated' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\@webruntime', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\@webruntime\webruntime-shim'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\@webruntime\webruntime-shim' npm WARN cleanup } npm WARN cleanup ] npm WARN cleanup ] npm ERR! code 1 npm ERR! path C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node build.js || nodejs build.js npm ERR! Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. npm ERR! fibers.cc npm ERR! c:\users\sathyanarayanan\appdata\local\sf\node_modules\fibers\src\fibers.cc(27): error C2838: 'kFinalizer': illegal qualified name in member declaration [C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers\build\fibers.vcxproj] npm ERR! c:\users\sathyanarayanan\appdata\local\sf\node_modules\fibers\src\fibers.cc(454): note: see reference to function template instantiation 'void uni::MakeWeak<void Fiber::WeakCallback(void ),v8::Object,void>(v8::Isolate ,v8::Persistent<v8::Object,v8::NonCopyablePersistentTraits> &,P *)' being compiled npm ERR! with npm ERR! [ npm ERR! T=v8::Object, npm ERR! P=void npm ERR! ] npm ERR! c:\users\sathyanarayanan\appdata\local\sf\node_modules\fibers\src\fibers.cc(27): error C2065: 'kFinalizer': undeclared identifier [C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers\build\fibers.vcxproj] npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@10.0.1 npm ERR! gyp info using node@20.11.1 | win32 | x64 npm ERR! gyp info find Python using Python version 3.12.2 found at "C:\Users\sathyanarayanan\AppData\Local\Programs\Python\Python312\python.exe" npm ERR! gyp info find VS using VS2017 (15.9.34601.69) found at: npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" npm ERR! gyp info find VS run with --verbose for detailed information npm ERR! gyp info spawn C:\Users\sathyanarayanan\AppData\Local\Programs\Python\Python312\python.exe npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args 'D:\sf\client\node_modules\@oclif\plugin-plugins\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'msvs', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers\build\config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'D:\sf\client\node_modules\@oclif\plugin-plugins\node_modules\npm\node_modules\node-gyp\addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Users\sathyanarayanan\AppData\Local\node-gyp\Cache\20.11.1\include\node\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=C:\Users\sathyanarayanan\AppData\Local\node-gyp\Cache\20.11.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=D:\sf\client\node_modules\@oclif\plugin-plugins\node_modules\npm\node_modules\node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\sathyanarayanan\\AppData\\Local\\node-gyp\\Cache\\20.11.1\\<(target_arch)\\node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers\build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args 'build\binding.sln', npm ERR! gyp info spawn args '/clp:Verbosity=minimal', npm ERR! gyp info spawn args '/nologo', npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64' npm ERR! gyp info spawn args ] npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess. (D:\sf\client\node_modules\@oclif\plugin-plugins\node_modules\npm\node_modules\node-gyp\lib\build.js:209:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:518:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) npm ERR! gyp ERR! System Windows_NT 10.0.22631 npm ERR! gyp ERR! command "D:\sf\client\bin\node.exe" "D:\sf\client\node_modules\@oclif\plugin-plugins\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--release" npm ERR! gyp ERR! cwd C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers npm ERR! gyp ERR! node -v v20.11.1 npm ERR! gyp ERR! node-gyp -v v10.0.1 npm ERR! gyp ERR! not ok npm ERR! node-gyp exited with code: 1 npm ERR! Please make sure you are using a supported platform and node version. If you npm ERR! would like to compile fibers on this machine please make sure you have setup your npm ERR! build environment-- npm ERR! Windows + OS X instructions here: https://github.com/nodejs/node-gyp npm ERR! Ubuntu users please run: sudo apt-get install g++ build-essential npm ERR! RHEL users please run: yum install gcc-c++ and yum groupinstall 'Development Tools' npm ERR! Alpine users please run: sudo apk add python make g++ npm ERR! 'nodejs' is not recognized as an internal or external command, npm ERR! operable program or batch file.

npm ERR! A complete log of this run can be found in: C:\Users\sathyanarayanan\AppData\Local\npm-cache_logs\2024-04-09T14_50_55_809Z-debug-0.log @salesforce/cli: Installing plugin @salesforce/lwc-dev-server@latest... failed » Error: D:\sf\client\node_modules\@oclif\plugin-plugins\node_modules\npm\bin\npm-cli.js install » @salesforce/lwc-dev-server@latest --omit dev --no-audit --loglevel=notice --no-fund exited with code 1 » Try this: Run with DEBUG=@oclif/plugin-plugins* to see debug output.

D:\One_drive\OneDrive - Pointel Solutions India Private Limited\D_drive\Salesforce>npm install -g node-gyp

changed 101 packages in 11s

14 packages are looking for funding run npm fund for details

D:\One_drive\OneDrive - Pointel Solutions India Private Limited\D_drive\Salesforce>SET PATH=C:\Program Files\Nodejs;%PATH%

D:\One_drive\OneDrive - Pointel Solutions India Private Limited\D_drive\Salesforce>sf plugins install @salesforce/lwc-dev-server Polling for new version(s) to become available on npm... done Successfully validated digital signature for @salesforce/lwc-dev-server. Finished digital signature check. npm WARN deprecated @babel/plugin-proposal-class-properties@7.14.5: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. npm WARN deprecated @babel/plugin-proposal-object-rest-spread@7.0.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead. npm WARN

deprecated @babel/plugin-proposal-class-properties@7.1.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead. npm WARN deprecated @babel/plugin-proposal-object-rest-spread@7.14.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead. npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility npm WARN deprecated csurf@1.11.0: Please use another csrf package npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm

WARN

deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated @oclif/screen@1.0.4: Deprecated in favor of @oclif/core npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead npm WARN deprecated rollup-plugin-replace@2.2.0: This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained. npm WARN deprecated domexception@1.0.1: Use your platform's native DOMException instead npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm WARN deprecated rollup-plugin-node-resolve@4.2.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve. npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead npm

WARN

deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. npm WARN deprecated @oclif/command@1.8.36: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated @oclif/help@1.0.15: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. 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 uuid@3.3.3: 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 @salesforce/command@3.1.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated rollup-plugin-commonjs@9.3.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated @oclif/errors@1.3.6: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated uuid@3.3.2: 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 @oclif/config@1.18.17: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm

WARN

deprecated @oclif/config@1.18.16: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm

WARN deprecated @oclif/parser@3.8.17: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm

WARN

deprecated cli-ux@4.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated @lwc/engine@1.2.2: Use @lwc/engine-dom instead npm

WARN

deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x. npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. npm WARN cleanup Failed to remove some directories [ npm WARN cleanup [ npm WARN cleanup 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\@salesforce', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\@salesforce\lwc-dev-server\node_modules\jsdom'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm

WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\@salesforce\lwc-dev-server\node_modules\jsdom' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\@communities-webruntime', npm WARN

cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\@communities-webruntime\client\dist'] { npm WARN cleanup errno: -4048, npm

WARN

cleanup code: 'EPERM', npm

WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\@communities-webruntime\client\dist' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\@salesforce\lwc-dev-server-dependencies',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\@salesforce\lwc-dev-server-dependencies\vendors\dependencies-228\lightning-pkg\src\lightning\inputRichText__examples__disabled\disabled'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\@salesforce\lwc-dev-server-dependencies\vendors\dependencies-228\lightning-pkg\src\lightning\inputRichText\examplesdisabled\disabled' npm WARN cleanup } npm WARN cleanup ] npm WARN cleanup ] npm ERR! code 1 npm ERR! path C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node build.js || nodejs build.js npm ERR! Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. npm ERR! fibers.cc npm ERR! c:\users\sathyanarayanan\appdata\local\sf\node_modules\fibers\src\fibers.cc(27): error C2838: 'kFinalizer': illegal qualified name in member declaration [C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers\build\fibers.vcxproj] npm ERR! c:\users\sathyanarayanan\appdata\local\sf\node_modules\fibers\src\fibers.cc(454): note: see reference to function template instantiation 'void uni::MakeWeak<void Fiber::WeakCallback(void ),v8::Object,void>(v8::Isolate ,v8::Persistent<v8::Object,v8::NonCopyablePersistentTraits> &,P *)' being compiled npm ERR! with npm ERR! [ npm ERR! T=v8::Object, npm ERR! P=void npm ERR! ] npm ERR! c:\users\sathyanarayanan\appdata\local\sf\node_modules\fibers\src\fibers.cc(27): error C2065: 'kFinalizer': undeclared identifier [C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers\build\fibers.vcxproj] npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@10.0.1 npm ERR! gyp info using node@20.11.1 | win32 | x64 npm ERR! gyp info find Python using Python version 3.12.2 found at "C:\Users\sathyanarayanan\AppData\Local\Programs\Python\Python312\python.exe" npm ERR! gyp info find VS using VS2017 (15.9.34601.69) found at: npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" npm ERR! gyp info find VS run with --verbose for detailed information npm ERR! gyp info spawn C:\Users\sathyanarayanan\AppData\Local\Programs\Python\Python312\python.exe npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args 'D:\sf\client\node_modules\@oclif\plugin-plugins\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'msvs', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers\build\config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'D:\sf\client\node_modules\@oclif\plugin-plugins\node_modules\npm\node_modules\node-gyp\addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Users\sathyanarayanan\AppData\Local\node-gyp\Cache\20.11.1\include\node\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=C:\Users\sathyanarayanan\AppData\Local\node-gyp\Cache\20.11.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=D:\sf\client\node_modules\@oclif\plugin-plugins\node_modules\npm\node_modules\node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\sathyanarayanan\\AppData\\Local\\node-gyp\\Cache\\20.11.1\\<(target_arch)\\node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers\build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args 'build\binding.sln', npm ERR! gyp info spawn args '/clp:Verbosity=minimal', npm ERR! gyp info spawn args '/nologo', npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64' npm ERR! gyp info spawn args ] npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess. (D:\sf\client\node_modules\@oclif\plugin-plugins\node_modules\npm\node_modules\node-gyp\lib\build.js:209:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:518:28) npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) npm ERR! gyp ERR! System Windows_NT 10.0.22631 npm ERR! gyp ERR! command "D:\sf\client\bin\node.exe" "D:\sf\client\node_modules\@oclif\plugin-plugins\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--release" npm ERR! gyp ERR! cwd C:\Users\sathyanarayanan\AppData\Local\sf\node_modules\fibers npm ERR! gyp ERR! node -v v20.11.1 npm ERR! gyp ERR! node-gyp -v v10.0.1 npm ERR! gyp ERR! not ok npm ERR! node-gyp exited with code: 1 npm ERR! Please make sure you are using a supported platform and node version. If you npm ERR! would like to compile fibers on this machine please make sure you have setup your npm ERR! build environment-- npm ERR! Windows + OS X instructions here: https://github.com/nodejs/node-gyp npm ERR! Ubuntu users please run: sudo apt-get install g++ build-essential npm ERR! RHEL users please run: yum install gcc-c++ and yum groupinstall 'Development Tools' npm ERR! Alpine users please run: sudo apk add python make g++ npm ERR! 'nodejs' is not recognized as an internal or external command, npm ERR! operable program or batch file.

npm ERR! A complete log of this run can be found in: C:\Users\sathyanarayanan\AppData\Local\npm-cache_logs\2024-04-09T14_54_54_275Z-debug-0.log @salesforce/cli: Installing plugin @salesforce/lwc-dev-server@latest... failed
» Error: D:\sf\client\node_modules\@oclif\plugin-plugins\node_modules\npm\bin\npm-cli.js install » @salesforce/lwc-dev-server@latest --omit dev --no-audit --loglevel=notice --no-fund exited with code 1 » Try this: Run with DEBUG=@oclif/plugin-plugins* to see debug output

github-actions[bot] commented 5 months ago

Hello @ptlSathyanarayanan :wave: It looks like you didn't include the full Salesforce CLI version information in your issue. Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

Thank you!

github-actions[bot] commented 5 months ago

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

ptlSathyanarayanan commented 5 months ago

My current CLI version is @salesforce/cli/2.35.6 win32-x64 node-v20.11.1 & json file is : { "name": "salesforce-app", "private": true, "version": "1.0.0", "description": "Salesforce App", "scripts": { "lint": "eslint /{aura,lwc}//*.js", "test": "npm run test:unit", "test:unit": "sfdx-lwc-jest", "test:unit:watch": "sfdx-lwc-jest --watch", "test:unit:debug": "sfdx-lwc-jest --debug", "test:unit:coverage": "sfdx-lwc-jest --coverage", "prettier": "prettier --write \"/*.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"", "prettier:verify": "prettier --check \"*/.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}\"", "postinstall": "husky install", "precommit": "lint-staged" }, "devDependencies": { "@lwc/eslint-plugin-lwc": "^1.1.2", "@prettier/plugin-xml": "^3.2.2", "@salesforce/eslint-config-lwc": "^3.2.3", "@salesforce/eslint-plugin-aura": "^2.0.0", "@salesforce/eslint-plugin-lightning": "^1.0.0", "@salesforce/sfdx-lwc-jest": "^3.1.0", "eslint": "^8.11.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jest": "^27.6.0", "husky": "^8.0.3", "lint-staged": "^15.1.0", "prettier": "^3.1.0", "prettier-plugin-apex": "^2.0.1" }, "lint-staged": { "/.{cls,cmp,component,css,html,js,json,md,page,trigger,xml,yaml,yml}": [ "prettier --write" ], "/{aura,lwc}//.js": [ "eslint" ] } }

WillieRuemmele commented 5 months ago

Hi @ptlSathyanarayanan - through all of your output, I don't see the original command that you ran, can you provide that? If you're trying to install this lwc plugin, beware that warnings are expected, but are just warnings and are ok.

ptlSathyanarayanan commented 5 months ago

The command which I ran : sf plugins install @salesforce/lwc-dev-server

WillieRuemmele commented 5 months ago

@ptlSathyanarayanan - this seems to be related to node 20. I was using node-v18.18.2 and was able to install it, once I upgraded to 20.11.1 I saw your same errors

ptlSathyanarayanan commented 5 months ago

Yeah but my node version is 18.20.1 , Still facing this issue. I tried re-installing Salesforce CLI and node multiple times . The issue keeps coming

WillieRuemmele commented 5 months ago

in your second comment, it's 20.11.1

I just installed 18.20.1 to verify, and it worked

 ➜  node -v            
v18.20.1
➜  cli git:(main) 
 ➜  npm i -g @salesforce/cli

added 952 packages in 10s

122 packages are looking for funding
  run `npm fund` for details
➜  cli git:(main) 
 ➜  sf plugins install @salesforce/lwc-dev-server
Polling for new version(s) to become available on npm... done
Successfully validated digital signature for @salesforce/lwc-dev-server.
Finished digital signature check.
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated csurf@1.11.0: Please use another csrf package
npm WARN deprecated @babel/plugin-proposal-class-properties@7.14.5: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm WARN deprecated @babel/plugin-proposal-object-rest-spread@7.0.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
npm WARN deprecated @babel/plugin-proposal-class-properties@7.1.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN
deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated @oclif/screen@1.0.4: Deprecated in favor of @oclif/core
npm WARN deprecated @babel/plugin-proposal-object-rest-spread@7.14.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
npm WARN deprecated domexception@1.0.1: Use your platform's native DOMException instead
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated rollup-plugin-replace@2.2.0: This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained.
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated rollup-plugin-node-resolve@4.2.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
npm WARN
deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated @oclif/command@1.8.36: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated @oclif/help@1.0.15: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
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 @oclif/errors@1.3.6: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated uuid@3.3.3: 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 uuid@3.3.2: 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 @oclif/parser@3.8.17: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated @oclif/config@1.18.17: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated @oclif/config@1.18.16: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated rollup-plugin-commonjs@9.3.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs.
npm
WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @salesforce/command@3.1.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated cli-ux@4.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN
deprecated @lwc/engine@1.2.2: Use @lwc/engine-dom instead
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
added 1002 packages in 35s

These warnings can only be addressed by the owner(s) of @salesforce/lwc-dev-server.
We suggest that you create an issue at https://github.com/forcedotcom/lwc-dev-server-feedback/issues and ask the plugin owners to address them.

@salesforce/cli: Installing plugin @salesforce/lwc-dev-server@latest... installed v2.11.0
github-actions[bot] commented 5 months ago

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.