-
Notifications
You must be signed in to change notification settings - Fork 396
Description
Hi, I was installing the library into a Docker container and after a bunch of deprecated notices, npm install threw an error. I ran git clone per the readme, cd ContentTools and then npm install:
npm ERR! code 1
npm ERR! path /var/www/html/resources/js/ContentTools/node_modules/phantomjs
npm ERR! command failed
npm ERR! command sh -c /tmp/install65745564693.sh
npm ERR! PhantomJS not found on PATH
npm ERR! Phantom installation failed TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
npm ERR! at new NodeError (node:internal/errors:371:5)
npm ERR! at validateString (node:internal/validators:120:11)
npm ERR! at Object.join (node:path:1172:7)
npm ERR! at findSuitableTempDirectory (/var/www/html/resources/js/ContentTools/node_modules/phantomjs/install.js:127:30)
npm ERR! at /var/www/html/resources/js/ContentTools/node_modules/phantomjs/install.js:476:19
npm ERR! at nextTickCallback (/var/www/html/resources/js/ContentTools/node_modules/kew/kew.js:47:28)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:78:11) {
npm ERR! code: 'ERR_INVALID_ARG_TYPE'
npm ERR! } TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
npm ERR! at new NodeError (node:internal/errors:371:5)
npm ERR! at validateString (node:internal/validators:120:11)
npm ERR! at Object.join (node:path:1172:7)
npm ERR! at findSuitableTempDirectory (/var/www/html/resources/js/ContentTools/node_modules/phantomjs/install.js:127:30)
npm ERR! at /var/www/html/resources/js/ContentTools/node_modules/phantomjs/install.js:476:19
npm ERR! at nextTickCallback (/var/www/html/resources/js/ContentTools/node_modules/kew/kew.js:47:28)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:78:11)