Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Unable to Install lwc dev server plugin #118

Open
ghost opened this issue Jun 11, 2021 · 23 comments
Open

Unable to Install lwc dev server plugin #118

ghost opened this issue Jun 11, 2021 · 23 comments

Comments

@ghost
Copy link

ghost commented Jun 11, 2021

Hi Team. I am new to LWC. I am trying to install the lwc local dev server by using the command 'sfdx plugins:install @salesforce/lwc-dev-server'. But it gives an error, as mentioned below

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Terminal in VS Code.
  2. Enter the command sfdx plugins:install @salesforce/lwc-dev-server and press enter
  3. See the error

Expected behavior
The plugin should automatically install.

Screenshots
Here is the exact error log:

Successfully validated digital signature for @salesforce/lwc-dev-server.
Finished digital signature check.
warning @salesforce/lwc-dev-server > @lwc/[email protected]: Use @lwc/engine-dom instead
warning @salesforce/lwc-dev-server > cpx > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @salesforce/lwc-dev-server > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning @salesforce/lwc-dev-server > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning @salesforce/lwc-dev-server > cpx > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @salesforce/lwc-dev-server > uuidv4 > [email protected]: 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.
warning @salesforce/lwc-dev-server > @webruntime/server > uuidv4 > [email protected]: 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.
warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs.
warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained.
warning @salesforce/lwc-dev-server > @webruntime/api > @lwc/compiler > [email protected]: This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained.warning "@salesforce/lwc-dev-server > [email protected]" has unmet peer dependency "request@^2.34".
warning "@salesforce/lwc-dev-server > @rollup/[email protected]" has unmet peer dependency "rollup@^1.20.0||^2.0.0".
error C:\Users\ksaluja\AppData\Local\sfdx\node_modules\fibers: Command failed.
Exit code: 1
Command: node build.js || nodejs build.js
Arguments:
Directory: C:\Users\ksaluja\AppData\Local\sfdx\node_modules\fibers
Output:
win32-ia32-72 exists; testing
Problem with the binary; manual build incoming
node-gyp not found! Please ensure node-gyp is in your PATH--
Try running: sudo npm install -g node-gyp
spawn node-gyp.cmd ENOENT
'nodejs' is not recognized as an internal or external command,
operable program or batch file.
Installing plugin @salesforce/lwc-dev-server... / info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Desktop (please complete the following information):

  • OS: - Windows 10
  • Browser - Chrome
  • Version - 91.0.4472.77

Additional context
I have the latest cli version. But I am still facing the above-mentioned issue. Any help here would be much appreciated.

@bcbarlow7737
Copy link

I have the same issue, but I am using Edge 91.0.864.48

@stale
Copy link

stale bot commented Jun 21, 2021

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label Jun 21, 2021
@VonRehberg
Copy link

Same here on Windows 11

@stale stale bot removed the type:bug-p3 label Jul 9, 2021
@VonRehberg
Copy link

Made it work using a workaround.
Go to ~/AppData/Local/sfdx/client/7.109.0-fc6b854 or whatever your sfdx client version is and open the folder in VS Code.
Now edit the package.json and add the "@salesforce/lwc-dev-server" dependency to plugins, pinnedDependencies and dependencies. Afterwards run npm install.
Although the npm install failed, I was able to start the dev server using "sfdx force:lightning:lwc:start"

@stale
Copy link

stale bot commented Jul 16, 2021

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label Jul 16, 2021
@forcetrekker
Copy link

After wasting a day and reading the error message properly, the error gives a hint node-gyp not found! Please ensure node-gyp is in your PATH--

node-gyp is not found, as per https://github.com/nodejs/node-gyp and following the instruction to install on windows:

Install tools and configuration manually

After installing python and Visual Studio Build Tools (using "Visual C++ build tools" workload), installation of plugin still failed.

So I tried re-installing them via npm (https://stackoverflow.com/questions/24649549/npm-install-fibers-shows-error):

npm install --global node-gyp
npm install --global --production windows-build-tools 
npm config set msvs_version 2017   

After this, node-gyp was installed but build tools command took long time from power shell and didn't get processed. Hence I tried npm install --global [email protected], but still no luck.

Finally searching and running npm install --global --production windows-build-tools --vs2015 worked. (felixrieseberg/windows-build-tools#179 (comment))

After this I was able to install it properly: sfdx plugins:install @salesforce/lwc-dev-server


TL;DR (To solve the node-gyp issue):

  1. Install node-gyp globally via npm: npm install --global node-gyp
  2. Install windows-build-tools with any one of below, whichever first works:
    • npm install --global --production windows-build-tools
    • npm install --global [email protected]
    • npm install --global --production windows-build-tools --vs2015
  3. Launch cmd: npm config set msvs_version 2017

@stale
Copy link

stale bot commented Oct 14, 2021

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label Oct 14, 2021
@404prateek-tyagi
Copy link

Hello guys the above error can be solved, can follow up with the below links(it helped me also).
Link: https://www.sfdcstop.com/2021/07/error-while-installing-lwc-local-server.html

@stale stale bot removed the type:bug-p3 label Feb 23, 2022
@stale
Copy link

stale bot commented Mar 12, 2022

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label Mar 12, 2022
@bloerinczCBS-CX
Copy link

On a new machine npm install -g node-gyp solved the issue for me.

@stale stale bot removed the type:bug-p3 label Mar 21, 2022
@stale
Copy link

stale bot commented Mar 30, 2022

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label Mar 30, 2022
@Ashish13898
Copy link

After wasting a day and reading the error message properly, the error gives a hint node-gyp not found! Please ensure node-gyp is in your PATH--

node-gyp is not found, as per https://github.com/nodejs/node-gyp and following the instruction to install on windows:

Install tools and configuration manually

After installing python and Visual Studio Build Tools (using "Visual C++ build tools" workload), installation of plugin still failed.

So I tried re-installing them via npm (https://stackoverflow.com/questions/24649549/npm-install-fibers-shows-error):

npm install --global node-gyp
npm install --global --production windows-build-tools 
npm config set msvs_version 2017   

After this, node-gyp was installed but build tools command took long time from power shell and didn't get processed. Hence I tried npm install --global [email protected], but still no luck.

Finally searching and running npm install --global --production windows-build-tools --vs2015 worked. (felixrieseberg/windows-build-tools#179 (comment))

After this I was able to install it properly: sfdx plugins:install @salesforce/lwc-dev-server

TL;DR (To solve the node-gyp issue):

  1. Install node-gyp globally via npm: npm install --global node-gyp

  2. Install windows-build-tools with any one of below, whichever first works:

    • npm install --global --production windows-build-tools
    • npm install --global [email protected]
    • npm install --global --production windows-build-tools --vs2015
  3. Launch cmd: npm config set msvs_version 2017

@forcetrekker you rock!!

this worked for me too :)

@stale stale bot removed the type:bug-p3 label May 19, 2022
@stale
Copy link

stale bot commented Jun 4, 2022

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label Jun 4, 2022
@selcukgoktas
Copy link

I do all of these but nothing changed.

PS C:\Users\arsiv\Desktop\Salesforce\SalesforceDeveloperTraining> sfdx 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. warning @salesforce/lwc-dev-server > @lwc/[email protected]: Use @lwc/engine-dom instead warning @salesforce/lwc-dev-server > cpx > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. warning @salesforce/lwc-dev-server > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 warning @salesforce/lwc-dev-server > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 warning @salesforce/lwc-dev-server > @salesforce/command > [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs. warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained. warning @salesforce/lwc-dev-server > @webruntime/api > @lwc/compiler > [email protected]: This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained. warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve. warning @salesforce/lwc-dev-server > cpx > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. warning @salesforce/lwc-dev-server > jsdom > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 warning @salesforce/lwc-dev-server > @salesforce/core > jsforce > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 warning @salesforce/lwc-dev-server > uuidv4 > [email protected]: 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. warning @salesforce/lwc-dev-server > @webruntime/server > uuidv4 > [email protected]: 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. warning @salesforce/lwc-dev-server > jsdom > request > [email protected]: 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. warning @salesforce/lwc-dev-server > jsdom > request > [email protected]: this library is no longer supported warning @salesforce/lwc-dev-server > cpx > babel-runtime > [email protected]: 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. warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated warning @salesforce/lwc-dev-server > @webruntime/api > @lwc/compiler > @lwc/style-compiler > cssnano-preset-default > postcss-svgo > [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x. warning @salesforce/lwc-dev-server > @webruntime/api > @lwc/compiler > @lwc/style-compiler > cssnano-preset-default > postcss-svgo > svgo > [email protected]: 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 warning "@salesforce/lwc-dev-server > @rollup/[email protected]" has unmet peer dependency "rollup@^1.20.0||^2.0.0". warning "@salesforce/lwc-dev-server > [email protected]" has unmet peer dependency "request@^2.34". warning "@salesforce/lwc-dev-server > request-promise-native > [email protected]" has unmet peer dependency "request@^2.34". error C:\Users\arsiv\AppData\Local\sfdx\node_modules\fibers: Command failed. Exit code: 1 Command: node build.js || nodejs build.js Arguments: Directory: C:\Users\arsiv\AppData\Local\sfdx\node_modules\fibers Output: gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp ERR! find Python gyp ERR! find Python checking Python explicitly set from command line or npm configuration gyp ERR! find Python - "--python=" or "npm config get python" is "C:\Users\arsiv\.windows-build-tools\python27\python.exe" gyp ERR! find Python - executable path is "C:\Users\arsiv\.windows-build-tools\python27\python.exe" gyp ERR! find Python - version is "2.7.15" gyp ERR! find Python - version is 2.7.15 - should be >=3.6.0 gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED gyp ERR! find Python Python is not set from environment variable PYTHON gyp ERR! find Python checking if "python3" can be used gyp ERR! find Python - "python3" is not in PATH or produced an error gyp ERR! find Python checking if "python" can be used gyp ERR! find Python - executable path is "C:\Users\arsiv\.windows-build-tools\python27\python.exe" gyp ERR! find Python - version is "2.7.15" gyp ERR! find Python - version is 2.7.15 - should be >=3.6.0 gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python39\python.exe gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python39\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python39-32\python.exe gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python38\python.exe gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python38\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python38-32\python.exe gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python37\python.exe gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python37\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe gyp ERR! find Python - "C:\Program Files\Python37\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python37-32\python.exe gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python37-32\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe gyp ERR! find Python - "C:\Program Files\Python37-32\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe gyp ERR! find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python36\python.exe gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python36\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe gyp ERR! find Python - "C:\Program Files\Python36\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python36-32\python.exe gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python36-32\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe gyp ERR! find Python - "C:\Program Files\Python36-32\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe gyp ERR! find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not be run gyp ERR! find Python checking if the py launcher can be used to find Python 3 gyp ERR! find Python - "py.exe" is not in PATH or produced an error gyp ERR! find Python gyp ERR! find Python ********************************************************** gyp ERR! find Python You need to install the latest version of Python. gyp ERR! find Python Node-gyp should be able to find and use Python. If not, gyp ERR! find Python you can try one of the following options: gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" gyp ERR! find Python (accepted by both node-gyp and npm) gyp ERR! find Python - Set the environment variable PYTHON gyp ERR! find Python - Set the npm configuration variable python: gyp ERR! find Python npm config set python "C:\Path\To\python.exe" gyp ERR! find Python For more information consult the documentation at: gyp ERR! find Python https://github.com/nodejs/node-gyp#installation gyp ERR! find Python ********************************************************** gyp ERR! find Python gyp ERR! configure error gyp ERR! stack Error: Could not find any Python installation to use gyp ERR! stack at PythonFinder.fail (C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\lib\find-python.js:330:47) gyp ERR! stack at PythonFinder.runChecks (C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\lib\find-python.js:159:21) gyp ERR! stack at PythonFinder.<anonymous> (C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\lib\find-python.js:228:18) gyp ERR! stack at PythonFinder.execFileCallback (C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\lib\find-python.js:294:16) gyp ERR! stack at exithandler (node:child_process:406:5) gyp ERR! stack at ChildProcess.errorhandler (node:child_process:418:5) gyp ERR! stack at ChildProcess.emit (node:events:527:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12) gyp ERR! stack at onErrorNT (node:internal/child_process:478:16) gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21) gyp ERR! System Windows_NT 10.0.19043 gyp ERR! command "C:\\Users\\arsiv\\AppData\\Local\\sfdx\\client\\7.159.0-f8fac41\\bin\\node.exe" "C:\\Users\\arsiv\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release" gyp ERR! cwd C:\Users\arsiv\AppData\Local\sfdx\node_modules\fibers gyp ERR! node -v v16.15.1 gyp ERR! node-gyp -v v9.1.0 gyp ERR! not ok node-gyp exited with code: 1 Please make sure you are using a supported platform and node version. If you would like to compile fibers on this machine please make sure you have setup your build environment-- Windows + OS X instructions here: https://github.com/nodejs/node-gyp Ubuntu users please run:sudo apt-get install g++ build-essentialRHEL users please run:yum install gcc-c++andyum groupinstall 'Development Tools'Alpine users please run:sudo apk add python make g++'nodejs' is not recognized as an internal or external command, operable program or batch file. Installing plugin @salesforce/lwc-dev-server... failed Error: yarn add @salesforce/lwc-dev-server@latest --non-interactive --mutex=file:C:\Users\arsiv\AppData\Local\sfdx\yarn.lock --preferred-cache-folder=C:\Users\arsiv\AppData\Local\sfdx\yarn --check-files exited with code 1 PS C:\Users\arsiv\Desktop\Salesforce\SalesforceDeveloperTraining> npm install -g node-gyp npm WARN config global--global, --localare deprecated. Use--location=globalinstead. npm WARN config global--global, --localare deprecated. Use--location=global` instead.

changed 94 packages, and audited 95 packages in 3s

5 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
PS C:\Users\arsiv\Desktop\Salesforce\SalesforceDeveloperTraining> sfdx 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.
warning @salesforce/lwc-dev-server > @lwc/[email protected]: Use @lwc/engine-dom instead
warning @salesforce/lwc-dev-server > cpx > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @salesforce/lwc-dev-server > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning @salesforce/lwc-dev-server > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning @salesforce/lwc-dev-server > @salesforce/command > [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
warning @salesforce/lwc-dev-server > cpx > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs.
warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained.
warning @salesforce/lwc-dev-server > @webruntime/compiler > @lwc/compiler > [email protected]: This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained.
warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
warning @salesforce/lwc-dev-server > jsdom > [email protected]: request has been deprecated, see request/request#3142
warning @salesforce/lwc-dev-server > @salesforce/core > jsforce > [email protected]: request has been deprecated, see request/request#3142
warning @salesforce/lwc-dev-server > uuidv4 > [email protected]: 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.
warning @salesforce/lwc-dev-server > @webruntime/server > uuidv4 > [email protected]: 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.
warning @salesforce/lwc-dev-server > jsdom > request > [email protected]: 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.
warning @salesforce/lwc-dev-server > jsdom > request > [email protected]: this library is no longer supported
warning @salesforce/lwc-dev-server > cpx > babel-runtime > [email protected]: 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.
warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning @salesforce/lwc-dev-server > @webruntime/compiler > @lwc/compiler > @lwc/style-compiler > cssnano-preset-default > postcss-svgo > [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
warning @salesforce/lwc-dev-server > @webruntime/compiler > @lwc/compiler > @lwc/style-compiler > cssnano-preset-default > postcss-svgo > svgo > [email protected]: 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
warning "@salesforce/lwc-dev-server > @rollup/[email protected]" has unmet peer dependency "rollup@^1.20.0||^2.0.0".
warning "@salesforce/lwc-dev-server > [email protected]" has unmet peer dependency "request@^2.34".
warning "@salesforce/lwc-dev-server > request-promise-native > [email protected]" has unmet peer dependency "request@^2.34".
error C:\Users\arsiv\AppData\Local\sfdx\node_modules\fibers: Command failed.
Exit code: 1
Command: node build.js || nodejs build.js
Arguments:
Directory: C:\Users\arsiv\AppData\Local\sfdx\node_modules\fibers
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp ERR! find Python
gyp ERR! find Python checking Python explicitly set from command line or npm configuration
gyp ERR! find Python - "--python=" or "npm config get python" is "C:\Users\arsiv.windows-build-tools\python27\python.exe"
gyp ERR! find Python - executable path is "C:\Users\arsiv.windows-build-tools\python27\python.exe"
gyp ERR! find Python - version is "2.7.15"
gyp ERR! find Python - version is 2.7.15 - should be >=3.6.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - executable path is "C:\Users\arsiv.windows-build-tools\python27\python.exe"
gyp ERR! find Python - version is "2.7.15"
gyp ERR! find Python - version is 2.7.15 - should be >=3.6.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python39\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python39\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe
gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python39-32\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python38\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python38\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe
gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python38-32\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python37\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python37\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe
gyp ERR! find Python - "C:\Program Files\Python37\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python37-32\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python37-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python37-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python36\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python36\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe
gyp ERR! find Python - "C:\Program Files\Python36\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python36-32\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python36-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python36-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not be run
gyp ERR! find Python checking if the py launcher can be used to find Python 3
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\lib\find-python.js:330:47)
gyp ERR! stack at PythonFinder.runChecks (C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\lib\find-python.js:159:21)
gyp ERR! stack at PythonFinder. (C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\lib\find-python.js:228:18)
gyp ERR! stack at PythonFinder.execFileCallback (C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\lib\find-python.js:294:16)
gyp ERR! stack at exithandler (node:child_process:406:5)
gyp ERR! stack at ChildProcess.errorhandler (node:child_process:418:5)
gyp ERR! stack at ChildProcess.emit (node:events:527:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
gyp ERR! stack at onErrorNT (node:internal/child_process:478:16)
gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\Users\arsiv\AppData\Local\sfdx\client\7.159.0-f8fac41\bin\node.exe" "C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--release"
gyp ERR! cwd C:\Users\arsiv\AppData\Local\sfdx\node_modules\fibers
gyp ERR! node -v v16.15.1
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: sudo apt-get install g++ build-essential
RHEL users please run: yum install gcc-c++ and yum groupinstall 'Development Tools'
Alpine users please run: sudo apk add python make g++
'nodejs' is not recognized as an internal or external command,
operable program or batch file.
Installing plugin @salesforce/lwc-dev-server... failed
Error: yarn add @salesforce/lwc-dev-server@latest --non-interactive --mutex=file:C:\Users\arsiv\AppData\Local\sfdx\yarn.lock --preferred-cache-folder=C:\Users\arsiv\AppData\Local\sfdx\yarn --check-files exited with code 1
PS C:\Users\arsiv\Desktop\Salesforce\SalesforceDeveloperTraining> npm install --global --production windows-build-tools --vs2015
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 config production Use --omit=dev instead.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: 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 [email protected]: request has been deprecated, see request/request#3142
warning @salesforce/lwc-dev-server > @lwc/[email protected]: Use @lwc/engine-dom instead
warning @salesforce/lwc-dev-server > cpx > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @salesforce/lwc-dev-server > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning @salesforce/lwc-dev-server > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning @salesforce/lwc-dev-server > @salesforce/command > [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
warning @salesforce/lwc-dev-server > cpx > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs.
warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained.
warning @salesforce/lwc-dev-server > @webruntime/api > @lwc/compiler > [email protected]: This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained.
warning @salesforce/lwc-dev-server > @webruntime/compiler > [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
warning @salesforce/lwc-dev-server > jsdom > [email protected]: request has been deprecated, see request/request#3142
warning @salesforce/lwc-dev-server > @salesforce/core > jsforce > [email protected]: request has been deprecated, see request/request#3142
warning @salesforce/lwc-dev-server > uuidv4 > [email protected]: 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.
warning @salesforce/lwc-dev-server > @webruntime/server > uuidv4 > [email protected]: 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. C:\Users\arsiv\Desktop\Salesforce\SalesforceDeveloperTraining> npm config set msvs_version 2021
warning @salesforce/lwc-dev-server > jsdom > request > [email protected]: 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.
warning @salesforce/lwc-dev-server > cpx > babel-runtime > [email protected]: 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.
warning @salesforce/lwc-dev-server > jsdom > request > [email protected]: this library is no longer supported
warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: See https://github.com/lydell/source-map-url#deprecated
warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning @salesforce/lwc-dev-server > @webruntime/api > @lwc/compiler > @lwc/style-compiler > cssnano-preset-default > postcss-svgo > [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
warning @salesforce/lwc-dev-server > @webruntime/api > @lwc/compiler > @lwc/style-compiler > cssnano-preset-default > postcss-svgo > svgo > [email protected]: 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
warning "@salesforce/lwc-dev-server > @rollup/[email protected]" has unmet peer dependency "rollup@^1.20.0||^2.0.0".
warning "@salesforce/lwc-dev-server > [email protected]" has unmet peer dependency "request@^2.34".
warning "@salesforce/lwc-dev-server > request-promise-native > [email protected]" has unmet peer dependency "request@^2.34".
error C:\Users\arsiv\AppData\Local\sfdx\node_modules\fibers: Command failed.
Exit code: 1
Command: node build.js || nodejs build.js
Arguments:
Directory: C:\Users\arsiv\AppData\Local\sfdx\node_modules\fibers
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp ERR! find Python
gyp ERR! find Python checking Python explicitly set from command line or npm configuration
gyp ERR! find Python - "--python=" or "npm config get python" is "C:\Users\arsiv.windows-build-tools\python27\python.exe"
gyp ERR! find Python - executable path is "C:\Users\arsiv.windows-build-tools\python27\python.exe"
gyp ERR! find Python - version is "2.7.15"
gyp ERR! find Python - version is 2.7.15 - should be >=3.6.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - executable path is "C:\Users\arsiv.windows-build-tools\python27\python.exe"
gyp ERR! find Python - version is "2.7.15"
gyp ERR! find Python - version is 2.7.15 - should be >=3.6.0
gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python39\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python39\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe
gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python39-32\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python38\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python38\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe
gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python38-32\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python37\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python37\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python37\python.exe
gyp ERR! find Python - "C:\Program Files\Python37\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python37-32\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python37-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python37-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python37-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python37-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python37-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python36\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python36\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python36\python.exe
gyp ERR! find Python - "C:\Program Files\Python36\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Users\arsiv\AppData\Local\Programs\Python\Python36-32\python.exe
gyp ERR! find Python - "C:\Users\arsiv\AppData\Local\Programs\Python\Python36-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files\Python36-32\python.exe
gyp ERR! find Python - "C:\Program Files\Python36-32\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python36-32\python.exe
gyp ERR! find Python - "C:\Program Files (x86)\Python36-32\python.exe" could not be run
gyp ERR! find Python checking if the py launcher can be used to find Python 3
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\lib\find-python.js:330:47)
gyp ERR! stack at PythonFinder.runChecks (C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\lib\find-python.js:159:21)
gyp ERR! stack at PythonFinder. (C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\lib\find-python.js:228:18)
gyp ERR! stack at PythonFinder.execFileCallback (C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\lib\find-python.js:294:16)
gyp ERR! stack at exithandler (node:child_process:406:5)
gyp ERR! stack at ChildProcess.errorhandler (node:child_process:418:5)
gyp ERR! stack at ChildProcess.emit (node:events:527:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
gyp ERR! stack at onErrorNT (node:internal/child_process:478:16)
gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\Users\arsiv\AppData\Local\sfdx\client\7.159.0-f8fac41\bin\node.exe" "C:\Users\arsiv\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--release"
gyp ERR! cwd C:\Users\arsiv\AppData\Local\sfdx\node_modules\fibers
gyp ERR! node -v v16.15.1
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: sudo apt-get install g++ build-essential
RHEL users please run: yum install gcc-c++ and yum groupinstall 'Development Tools'
Alpine users please run: sudo apk add python make g++
'nodejs' is not recognized as an internal or external command,
operable program or batch file.
Installing plugin @salesforce/lwc-dev-server... failed
Error: yarn add @salesforce/lwc-dev-server@latest --non-interactive --mutex=file:C:\Users\arsiv\AppData\Local\sfdx\yarn.lock --preferred-cache-folder=C:\Users\arsiv\AppData\Local\sfdx\yarn --check-files exited with code 1`

@ShoaibIbrahim786
Copy link

Hi,
I have followed the same process for this:-

**1. Install node-gyp globally via npm: npm install --global node-gyp

  1. Install windows-build-tools with any one of below, whichever first works:

npm install --global --production windows-build-tools
npm install --global [email protected]
npm install --global --production windows-build-tools --vs2015
3. Launch cmd: npm config set msvs_version 2017**

But getting some error please see the errors and guide me where i am doing mistakes:-
PS C:\Users\SHOAIB IBRAHIM.vscode\FisrtProject> npm install --global --production 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 config production Use --omit=dev instead.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: 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 [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: 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\SHOAIB IBRAHIM\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\SHOAIB IBRAHIM.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\SHOAIB IBRAHIM.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".

@stale
Copy link

stale bot commented Aug 12, 2022

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label Aug 12, 2022
@yamunavandrasi
Copy link

please provide a solution i too got the same issue

@stale stale bot removed the type:bug-p3 label Oct 20, 2022
@stale
Copy link

stale bot commented Oct 29, 2022

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label Oct 29, 2022
@swathibv27
Copy link

Can anyone please help me with lwc local dev setup?

@stale stale bot removed the type:bug-p3 label Nov 27, 2022
@swathibv27
Copy link

I was able to fix this using:https://github.com/nodejs/node-gyp

  • run  'npm install -g node-gyp' in command prompt

  • Install the current version of Python from the Microsoft Store package(I installed 3.10.8 from https://www.python.org/downloads/release/python-3108/)

  • Install Visual C++ Build Environment: Visual Studio Build Tools (using "Visual C++ build tools" workload) or Visual Studio Community (using the "Desktop development with C++" workload)

  • Launch cmd, npm config set msvs_version 2017

  • now try to run ' sfdx plugins:install @salesforce/lwc-dev-server'

Hope this helps

@stale
Copy link

stale bot commented Dec 21, 2022

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label Dec 21, 2022
@vitalik-kovalchuk
Copy link

if You have Mac Os - install - Command Line Tools for Xcode

@stale stale bot removed the type:bug-p3 label Apr 4, 2023
@stale
Copy link

stale bot commented May 21, 2023

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label May 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests