forcedotcom / lwc-dev-server-feedback

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

lwc-dev-server and Node v14 dependancy issues #72

Open drushbrook opened 4 years ago

drushbrook commented 4 years ago

Describe the bug cpx is a dependancy and was last published 4 years ago and holds onto an old dependancy for Chokidar which breaks the lwc-dev-server optional dependancy install process on node v14 - see below for log. Chokidar as a dependancy for cpx was removed mysticatea/cpx@0c7edde7 however no package update was published to npm. npm packages cpx2 and cpx-fixed were created referencing the fixed dependancies due to the maintainer not be responsive to requests for a new published package.

To Reproduce ` ❯ npm -v 6.14.5 ❯ node -v v14.4.0 ❯ sfdx update sfdx-cli: Updating CLI from 7.36.0-b1c4e9c7c8 to 7.63.0-c897e8bb1a... done sfdx-cli: Updating CLI... done ❯ sfdx plugins:install @salesforce/lwc-dev-server This plugin is not digitally signed and its authenticity cannot be verified. Continue installation y/n?: y Finished digital signature check. 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 > 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 > @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 > cpx > babel-runtime > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. 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 > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated warning "@salesforce/lwc-dev-server > @rollup/plugin-alias@3.1.1" has unmet peer dependency "rollup@^1.20.0||^2.0.0". warning "@salesforce/lwc-dev-server > request-promise-native@1.0.8" has unmet peer dependency "request@^2.34". warning "@salesforce/lwc-dev-server > request-promise-native > request-promise-core@1.1.3" has unmet peer dependency "request@^2.34". warning Error running install script for optional dependency: "/Users/drushbrook/.local/share/sfdx/node_modules/cpx/node_modules/fsevents: Command failed. Exit code: 1 Command: node install.js Arguments: Directory: /Users/drushbrook/.local/share/sfdx/node_modules/cpx/node_modules/fsevents Output: events.js:174 throw er; // Unhandled 'error' event ^

Error: spawn node-gyp ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19) at onErrorNT (internal/child_process.js:415:16) at process._tickCallback (internal/process/next_tick.js:63:19) at Function.Module.runMain (internal/modules/cjs/loader.js:834:11) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) Emitted 'error' event at: at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12) at onErrorNT (internal/child_process.js:415:16) [... lines matching original stack trace ...] at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)" Installing plugin @salesforce/lwc-dev-server... installed v2.2.0 ❯ ls /Users/drushbrook/.local/share/sfdx/node_modules/cpx/node_modules/fsevents ls: /Users/drushbrook/.local/share/sfdx/node_modules/cpx/node_modules/fsevents: No such file or directory `

Expected behavior Clean install

Desktop

Additional context sfdx-cli installed via pkg node v14.4.0 installed via brew npm v6.14.5 installed via brew

stale[bot] commented 4 years ago

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

git2gus[bot] commented 4 years ago

This issue has been linked to a new work item: W-7777296