MaxvandeLaar / homey-webos-plus

Improved LG WebOS integration for Homey
GNU General Public License v3.0
27 stars 11 forks source link

Error occurred during npm prune #60

Open Tiwas opened 1 year ago

Tiwas commented 1 year ago

Tried installing on my Homey 2023.

homey select homey app install

Output:

✓ Pre-processing app...
Command failed: npm ls --parseable --all --only=prod
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
npm ERR! code ELSPROBLEMS
npm ERR! missing: jimp-compact@^0.9.8, required by com.maxvandelaar.homey-webos@3.1.2
npm ERR! missing: node-fetch@^2.6.0, required by com.maxvandelaar.homey-webos@3.1.2
npm ERR! missing: node-wol@^0.1.1, required by com.maxvandelaar.homey-webos@3.1.2
npm ERR! missing: websocket@^1.0.30, required by com.maxvandelaar.homey-webos@3.1.2

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\lars\AppData\Local\npm-cache\_logs\2023-05-23T14_11_42_998Z-debug-0.log

This error may be fixed by running `npm install` in your app.

npm run deploy

Output:

> com.maxvandelaar.homey-webos@3.1.2 deploy
> npm install && homey app install

npm WARN deprecated ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated monitorctrlc@2.0.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated acorn-import-meta@1.0.0: acorn>=7.2 supports import-meta
npm WARN deprecated source-map-url@0.4.0: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
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 svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.

added 830 packages, and audited 831 packages in 14s

22 packages are looking for funding
  run `npm fund` for details

49 vulnerabilities (12 moderate, 28 high, 9 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
✓ Pre-processing app...
✓ Validating app...
✓ Homey App validated successfully against level `debug`
✓ Packing Homey App...
✓ Pruning dev dependencies...
× Error occurred during npm prune TypeError: prunePathsJson.removed.map is not a function
    at NpmCommands.getPrunePaths (C:\Users\lars\Downloads\homey-webos-plus-3.1.2\homey-webos-plus-3.1.2\node_modules\homey\lib\Modules\NpmCommands.js:92:49)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async C:\Users\lars\Downloads\homey-webos-plus-3.1.2\homey-webos-plus-3.1.2\node_modules\homey\lib\App\index.js:683:26
 — App size: 85.7 MB
✓ Installing Homey App on `Lars's New Homey` (http://192.168.x.y)...
× Cannot read properties of undefined (reading 'find')

Anyone know how to make this run on the new Homey?