jquery-ui-month-picker icon indicating copy to clipboard operation
jquery-ui-month-picker copied to clipboard

PhantomJS error while installing package

Open trane77 opened this issue 9 months ago • 0 comments

Hi,

I've encountered an error while trying to install the package (I'm using node 22.10.0 LTS + pnpm):

node_modules/.pnpm/[email protected]/node_modules/phantomjs: Running install script, failed in 88ms
.../node_modules/phantomjs install$ node install.js
│ (node:33661) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
│ (Use `node --trace-deprecation ...` to show where the warning was created)
│ Considering PhantomJS found at /home/benz/myrepo/italdev/myempire/node_modules/.pnpm/[email protected]/node_modules/jquery-ui-month-picker-zm/node_modules/.pnpm/phan…
│ Looks like an `npm install -g` on windows; skipping installed version.
│ Phantom installation failed TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
│     at Object.join (node:path:1250:7)
│     at findSuitableTempDirectory (/home/benz/myrepo/italdev/myempire/node_modules/.pnpm/[email protected]/node_modules/jquery-ui-month-picker-zm/node_modules/.pnpm/p…
│     at /home/benz/myrepo/italdev/myempire/node_modules/.pnpm/[email protected]/node_modules/jquery-ui-month-picker-zm/node_modules/.pnpm/[email protected]/node_module…
│     at nextTickCallback (/home/benz/myrepo/italdev/myempire/node_modules/.pnpm/[email protected]/node_modules/jquery-ui-month-picker-zm/node_modules/.pnpm/[email protected]/…
│     at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
│   code: 'ERR_INVALID_ARG_TYPE'
│ } TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
│     at Object.join (node:path:1250:7)
│     at findSuitableTempDirectory (/home/benz/myrepo/italdev/myempire/node_modules/.pnpm/[email protected]/node_modules/jquery-ui-month-picker-zm/node_modules/.pnpm/p…
│     at /home/benz/myrepo/italdev/myempire/node_modules/.pnpm/[email protected]/node_modules/jquery-ui-month-picker-zm/node_modules/.pnpm/[email protected]/node_module…
│     at nextTickCallback (/home/benz/myrepo/italdev/myempire/node_modules/.pnpm/[email protected]/node_modules/jquery-ui-month-picker-zm/node_modules/.pnpm/[email protected]/…
│     at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
└─ Failed in 88ms at /home/benz/myrepo/italdev/myempire/node_modules/.pnpm/[email protected]/node_modules/jquery-ui-month-picker-zm/node_modules/.pnpm/[email protected]/node_modules/phantomjs
 ELIFECYCLE  Command failed

I guess dependencies are too old and became incompatible with the current toolchain.

trane77 avatar Jan 23 '25 14:01 trane77