homey-webos-plus icon indicating copy to clipboard operation
homey-webos-plus copied to clipboard

Error occurred during npm prune

Open Tiwas opened this issue 1 year ago • 0 comments

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 [email protected]
npm ERR! missing: node-fetch@^2.6.0, required by [email protected]
npm ERR! missing: node-wol@^0.1.1, required by [email protected]
npm ERR! missing: websocket@^1.0.30, required by [email protected]

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:

> [email protected] deploy
> npm install && homey app install

npm WARN deprecated [email protected]: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated [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
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated [email protected]: 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 [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated [email protected]: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: acorn>=7.2 supports import-meta
npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
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]: 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?

Tiwas avatar May 23 '23 14:05 Tiwas