forcedotcom / lwc-dev-server-feedback

LWC Local Development
BSD 3-Clause "New" or "Revised" License
45 stars 10 forks source link

Unable to Install lwc dev server plugin #118

Open ghost opened 3 years ago

ghost commented 3 years ago

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/engine@1.2.2: Use @lwc/engine-dom instead warning @salesforce/lwc-dev-server > cpx > chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. warning @salesforce/lwc-dev-server > 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 warning @salesforce/lwc-dev-server > jsdom > 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 warning @salesforce/lwc-dev-server > cpx > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. warning @salesforce/lwc-dev-server > uuidv4 > 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. warning @salesforce/lwc-dev-server > @webruntime/server > uuidv4 > 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. warning @salesforce/lwc-dev-server > @webruntime/compiler > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. warning @salesforce/lwc-dev-server > @webruntime/compiler > rollup-plugin-commonjs@9.3.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs. warning @salesforce/lwc-dev-server > @webruntime/compiler > rollup-plugin-node-resolve@4.2.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve. warning @salesforce/lwc-dev-server > @webruntime/compiler > 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. warning @salesforce/lwc-dev-server > @webruntime/api > @lwc/compiler > 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.warning "@salesforce/lwc-dev-server > request-promise-native@1.0.9" has unmet peer dependency "request@^2.34". warning "@salesforce/lwc-dev-server > @rollup/plugin-alias@3.1.2" 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):

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 commented 3 years ago

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

stale[bot] commented 3 years ago

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

VonRehberg commented 3 years ago

Same here on Windows 11

VonRehberg commented 3 years ago

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[bot] commented 3 years ago

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

forcetrekker commented 3 years ago

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 windows-build-tools@4.0.0, but still no luck.

Finally searching and running npm install --global --production windows-build-tools --vs2015 worked. (https://github.com/felixrieseberg/windows-build-tools/issues/179#issuecomment-504353854)

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 windows-build-tools@4.0.0
    • npm install --global --production windows-build-tools --vs2015
  3. Launch cmd: npm config set msvs_version 2017
stale[bot] commented 3 years ago

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

404prateek-tyagi commented 2 years ago

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[bot] commented 2 years ago

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

bloerinczCBS-CX commented 2 years ago

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

stale[bot] commented 2 years ago

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

Ashish13898 commented 2 years ago

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 windows-build-tools@4.0.0, 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 windows-build-tools@4.0.0
    • 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[bot] commented 2 years ago

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

selcukgoktas commented 2 years ago

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/engine@1.2.2: Use @lwc/engine-dom instead warning @salesforce/lwc-dev-server > cpx > chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. warning @salesforce/lwc-dev-server > 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 warning @salesforce/lwc-dev-server > jsdom > 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 warning @salesforce/lwc-dev-server > @salesforce/command > cli-ux@4.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. warning @salesforce/lwc-dev-server > @webruntime/compiler > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. warning @salesforce/lwc-dev-server > @webruntime/compiler > rollup-plugin-commonjs@9.3.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs. warning @salesforce/lwc-dev-server > @webruntime/compiler > 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. warning @salesforce/lwc-dev-server > @webruntime/api > @lwc/compiler > 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. warning @salesforce/lwc-dev-server > @webruntime/compiler > rollup-plugin-node-resolve@4.2.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve. warning @salesforce/lwc-dev-server > cpx > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. warning @salesforce/lwc-dev-server > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning @salesforce/lwc-dev-server > @salesforce/core > jsforce > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning @salesforce/lwc-dev-server > uuidv4 > 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. warning @salesforce/lwc-dev-server > @webruntime/server > uuidv4 > 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. warning @salesforce/lwc-dev-server > jsdom > request > 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. warning @salesforce/lwc-dev-server > jsdom > request > har-validator@5.1.5: this library is no longer supported warning @salesforce/lwc-dev-server > cpx > babel-runtime > 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. warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > urix@0.1.0: 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 > svgo@1.3.2: 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 > 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 warning "@salesforce/lwc-dev-server > @rollup/plugin-alias@3.1.9" has unmet peer dependency "rollup@^1.20.0||^2.0.0". warning "@salesforce/lwc-dev-server > request-promise-native@1.0.9" has unmet peer dependency "request@^2.34". warning "@salesforce/lwc-dev-server > request-promise-native > request-promise-core@1.1.4" 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 node-gyp@9.1.0 gyp info using node@16.15.1 | 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-essential RHEL 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/engine@1.2.2: Use @lwc/engine-dom instead warning @salesforce/lwc-dev-server > cpx > chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. warning @salesforce/lwc-dev-server > 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 warning @salesforce/lwc-dev-server > jsdom > 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 warning @salesforce/lwc-dev-server > @salesforce/command > cli-ux@4.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. warning @salesforce/lwc-dev-server > cpx > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. warning @salesforce/lwc-dev-server > @webruntime/compiler > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. warning @salesforce/lwc-dev-server > @webruntime/compiler > rollup-plugin-commonjs@9.3.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs. warning @salesforce/lwc-dev-server > @webruntime/compiler > 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. warning @salesforce/lwc-dev-server > @webruntime/compiler > @lwc/compiler > 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. warning @salesforce/lwc-dev-server > @webruntime/compiler > rollup-plugin-node-resolve@4.2.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve. warning @salesforce/lwc-dev-server > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning @salesforce/lwc-dev-server > @salesforce/core > jsforce > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning @salesforce/lwc-dev-server > uuidv4 > 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. warning @salesforce/lwc-dev-server > @webruntime/server > uuidv4 > 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. warning @salesforce/lwc-dev-server > jsdom > request > 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. warning @salesforce/lwc-dev-server > jsdom > request > har-validator@5.1.5: this library is no longer supported warning @salesforce/lwc-dev-server > cpx > babel-runtime > 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. warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > urix@0.1.0: 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 > svgo@1.3.2: 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 > 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 warning "@salesforce/lwc-dev-server > @rollup/plugin-alias@3.1.9" has unmet peer dependency "rollup@^1.20.0||^2.0.0". warning "@salesforce/lwc-dev-server > request-promise-native@1.0.9" has unmet peer dependency "request@^2.34". warning "@salesforce/lwc-dev-server > request-promise-native > request-promise-core@1.1.4" 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 node-gyp@9.1.0 gyp info using node@16.15.1 | 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 har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning @salesforce/lwc-dev-server > @lwc/engine@1.2.2: Use @lwc/engine-dom instead warning @salesforce/lwc-dev-server > cpx > chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. warning @salesforce/lwc-dev-server > 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 warning @salesforce/lwc-dev-server > jsdom > 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 warning @salesforce/lwc-dev-server > @salesforce/command > cli-ux@4.9.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. warning @salesforce/lwc-dev-server > cpx > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. warning @salesforce/lwc-dev-server > @webruntime/compiler > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. warning @salesforce/lwc-dev-server > @webruntime/compiler > rollup-plugin-commonjs@9.3.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs. warning @salesforce/lwc-dev-server > @webruntime/compiler > 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. warning @salesforce/lwc-dev-server > @webruntime/api > @lwc/compiler > 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. warning @salesforce/lwc-dev-server > @webruntime/compiler > rollup-plugin-node-resolve@4.2.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve. warning @salesforce/lwc-dev-server > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning @salesforce/lwc-dev-server > @salesforce/core > jsforce > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning @salesforce/lwc-dev-server > uuidv4 > 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. warning @salesforce/lwc-dev-server > @webruntime/server > uuidv4 > 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. C:\Users\arsiv\Desktop\Salesforce\SalesforceDeveloperTraining> npm config set msvs_version 2021 warning @salesforce/lwc-dev-server > jsdom > request > 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. warning @salesforce/lwc-dev-server > cpx > babel-runtime > 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. warning @salesforce/lwc-dev-server > jsdom > request > har-validator@5.1.5: this library is no longer supported warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated warning @salesforce/lwc-dev-server > cpx > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > urix@0.1.0: 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 > svgo@1.3.2: 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 > 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 warning "@salesforce/lwc-dev-server > @rollup/plugin-alias@3.1.9" has unmet peer dependency "rollup@^1.20.0||^2.0.0". warning "@salesforce/lwc-dev-server > request-promise-native@1.0.9" has unmet peer dependency "request@^2.34". warning "@salesforce/lwc-dev-server > request-promise-native > request-promise-core@1.1.4" 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 node-gyp@9.1.0 gyp info using node@16.15.1 | 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 commented 2 years ago

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 windows-build-tools@4.0.0 npm install --global --production windows-build-tools --vs2015

  1. 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 har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated windows-build-tools@5.2.2: Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details. npm ERR! code 1 npm ERR! path C:\Users\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[bot] commented 2 years ago

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

yamunavandrasi commented 2 years ago

please provide a solution i too got the same issue

stale[bot] commented 2 years ago

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

swathibv27 commented 1 year ago

Can anyone please help me with lwc local dev setup?

swathibv27 commented 1 year ago

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

Hope this helps

stale[bot] commented 1 year ago

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

vitalik-kovalchuk commented 1 year ago

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

stale[bot] commented 1 year ago

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