Open mattd624 opened 1 year ago
Did you try installing node-gyp?
node-gyp not found! Please ensure node-gyp is in your PATH--
Try running: sudo npm install -g node-gyp
This issue has been automatically marked as type:bug-p3
because it has not had recent activity.
Experiencing this issue as well. sf installed via npm @salesforce/cli/2.17.14 win32-x64 node-v18.18.0
Also experiencing the issue sf installed via windows installer node-v20
However I had a feeling that the sf tools from 2 years ago require node 16.
I installed node 16 and then node-gyp then reattempted the plugin installation and it worked.
Summary
Tried to install lwc-dev-server to check it out. Install failed.
Steps To Reproduce:
PS> sfdx plugins:install @salesforce/lwc-dev-server
Expected result
Install lwc-dev-server
Actual result
Polling for new version(s) to become available on npm... done Successfully validated digital signature for @salesforce/lwc-dev-server. Finished digital signature check. Installing plugin @salesforce/lwc-dev-server... / [1/4] Resolving packages... Installing plugin @salesforce/lwc-dev-server... - [1/4] Resolving packages... 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 Installing plugin @salesforce/lwc-dev-server... \ [1/4] Resolving packages... 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 > @communities-webruntime/extensions > csurf@1.11.0: Please use another csrf package Installing plugin @salesforce/lwc-dev-server... | [1/4] Resolving packages... 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 > jsdom > w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. 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 > @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. Installing plugin @salesforce/lwc-dev-server... / [1/4] Resolving packages... 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. Installing plugin @salesforce/lwc-dev-server... - [1/4] Resolving packages... 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- Installing plugin @salesforce/lwc-dev-server... \ [1/4] Resolving packages... Installing plugin @salesforce/lwc-dev-server... / [1/4] Resolving packages... 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 Installing plugin @salesforce/lwc-dev-server... - [1/4] Resolving packages... 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 Installing plugin @salesforce/lwc-dev-server... \ [1/4] Resolving packages... 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 sor Installing plugin @salesforce/lwc-dev-server... | [2/4] Fetching packages... 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". Installing plugin @salesforce/lwc-dev-server... | [4/4] Building fresh packages... error C:\Users\mdavis\AppData\Local\sfdx\node_modules\fibers: Command failed. Exit code: 1 Command: node build.js || nodejs build.js Arguments: Directory: C:\Users\mdavis\AppData\Local\sfdx\node_modules\fibers Output: node-gyp not found! Please ensure node-gyp is in your PATH-- Try running:
sudo npm install -g node-gyp
'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\mdavis\AppData\Local\sfdx\yarn.lock --preferred-cache-folder=C:\Users\mdavis\AppData\Local\sfdx\yarn --check-filesexited with code 1
Additional information
PS> sfdx plugins --core @oclif/plugin-autocomplete 2.1.9 (core) @oclif/plugin-commands 2.2.14 (core) @oclif/plugin-help 5.2.9 (core) @oclif/plugin-not-found 2.3.23 (core) @oclif/plugin-plugins 3.0.1 (core) @oclif/plugin-search 0.0.17 (core) @oclif/plugin-update 3.1.13 (core) @oclif/plugin-version 1.3.3 (core) @oclif/plugin-warn-if-update-available 2.0.36 (core) @oclif/plugin-which 2.2.19 (core) apex 2.2.15 (core) auth 2.7.14 (core) community 2.2.11 (core) custom-metadata 2.1.19 (core) data 2.3.14 (core) deploy-retrieve 1.8.18 (core) info 2.6.10 (core) limits 2.3.13 (core) org 2.8.1 (core) packaging 1.16.11 (core) schema 2.3.10 (core) settings 1.4.6 (core) sfdx-cli 7.200.7 (core) signups 1.4.14 (core) source 2.10.7 (core) telemetry 2.2.0 (core) templates 55.4.13 (core) trust 2.4.14 (core) user 2.3.10 (core) PS>
Salesforce Extension Version in VS Code: ?
SFDX CLI Version: sfdx-cli/7.200.7 win32-x64 node-v18.15.0
OS and version: Win 10 Pro v21H2 (OS Build 19044.2965)