Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Требование неподдерживаемого(опасного) пакета PhantomJS #159

Open
LEv145 opened this issue Aug 18, 2022 · 2 comments

Comments

@LEv145
Copy link

LEv145 commented Aug 18, 2022

При сборке получаю в лог такую ошибку:

npm ERR! code 1
npm ERR! path /home/lev145/Проекты/Проект БЭМ/node_modules/bem-core
npm ERR! command failed
npm ERR! command sh -c npm i jsdoc mocha-phantomjs
npm ERR! npm WARN EBADENGINE Unsupported engine {
npm ERR! npm WARN EBADENGINE   package: '[email protected]',
npm ERR! npm WARN EBADENGINE   required: { node: '0.10' },
npm ERR! npm WARN EBADENGINE   current: { node: 'v16.16.0', npm: '8.11.0' }
npm ERR! npm WARN EBADENGINE }
npm ERR! npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-url#deprecated
npm ERR! 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 ERR! npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm ERR! npm WARN deprecated [email protected]: Deprecated, use jstransformer
npm ERR! npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm ERR! npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm ERR! npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm ERR! npm WARN deprecated [email protected]: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm ERR! npm WARN deprecated [email protected]: Please use the native JSON object instead of JSON 3
npm ERR! npm WARN deprecated [email protected]: Please update to at least constantinople 3.1.1
npm ERR! npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm ERR! npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm ERR! npm WARN deprecated [email protected]: See https://github.com/lydell/source-map-resolve#deprecated
npm ERR! npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
npm ERR! npm WARN deprecated [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm ERR! npm WARN deprecated [email protected]: Use eslint instead
npm ERR! npm WARN deprecated [email protected]: No longer maintained. We recomment migrating to ESLint with eslint-config-wikimedia.
npm ERR! npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm ERR! npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm ERR! npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm ERR! npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! npm WARN deprecated [email protected]: Use uuid module instead
npm ERR! npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm ERR! npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm ERR! npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm ERR! npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
npm ERR! 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 ERR! 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 ERR! npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! 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 ERR! 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 ERR! 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 ERR! npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm ERR! npm WARN deprecated [email protected]: v0.x is deprecated. Use v4.x or newer
npm ERR! npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm ERR! npm WARN deprecated [email protected]: Use uuid module instead
npm ERR! npm WARN deprecated [email protected]: Please upgrade to 1.0.4 for node 0.10, 0.12, or to 2.0+ for node 4+
npm ERR! 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 ERR! npm WARN deprecated [email protected]: v1.x is deprecated. Use v4.x or newer. See https://github.com/bem/bem-xjst/wiki/Migration-guides
npm ERR! npm WARN deprecated [email protected]: v1.x is deprecated. Use v4.x or newer. See https://github.com/bem/bem-xjst/wiki/Migration-guides
npm ERR! npm WARN deprecated [email protected]: this library is no longer supported
npm ERR! npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm ERR! 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 ERR! 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 ERR! npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm ERR! npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm ERR! npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm ERR! npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm ERR! npm WARN deprecated [email protected]: Mocha v1.x is no longer supported.
npm ERR! npm WARN deprecated [email protected]: This module is no longer maintained, try this instead:
npm ERR! npm WARN deprecated   npm i nyc
npm ERR! npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
npm ERR! npm WARN deprecated [email protected]: Version no longer supported. Upgrade to @latest
npm ERR! npm WARN deprecated [email protected]: This module is no longer maintained, try this instead:
npm ERR! npm WARN deprecated   npm i nyc
npm ERR! npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
npm ERR! npm WARN deprecated [email protected]: Support has ended for 9.x series. Upgrade to @latest
npm ERR! npm WARN deprecated [email protected]: JSCS has merged with ESLint! See - https://medium.com/@markelog/jscs-end-of-the-line-bc9bf0b3fdb2
npm ERR! npm WARN deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /home/lev145/Проекты/Проект БЭМ/node_modules/bem-core/node_modules/phantomjs
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c node install.js
npm ERR! npm ERR! PhantomJS not found on PATH
npm ERR! npm ERR! Phantom installation failed TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
npm ERR! npm ERR!     at new NodeError (node:internal/errors:372:5)
npm ERR! npm ERR!     at validateString (node:internal/validators:120:11)
npm ERR! npm ERR!     at Object.join (node:path:1172:7)
npm ERR! npm ERR!     at findSuitableTempDirectory (/home/lev145/Проекты/Проект БЭМ/node_modules/bem-core/node_modules/phantomjs/install.js:127:30)
npm ERR! npm ERR!     at /home/lev145/Проекты/Проект БЭМ/node_modules/bem-core/node_modules/phantomjs/install.js:476:19
npm ERR! npm ERR!     at nextTickCallback (/home/lev145/Проекты/Проект БЭМ/node_modules/bem-core/node_modules/kew/kew.js:47:28)
npm ERR! npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:78:11) {
npm ERR! npm ERR!   code: 'ERR_INVALID_ARG_TYPE'
npm ERR! npm ERR! } TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
npm ERR! npm ERR!     at new NodeError (node:internal/errors:372:5)
npm ERR! npm ERR!     at validateString (node:internal/validators:120:11)
npm ERR! npm ERR!     at Object.join (node:path:1172:7)
npm ERR! npm ERR!     at findSuitableTempDirectory (/home/lev145/Проекты/Проект БЭМ/node_modules/bem-core/node_modules/phantomjs/install.js:127:30)
npm ERR! npm ERR!     at /home/lev145/Проекты/Проект БЭМ/node_modules/bem-core/node_modules/phantomjs/install.js:476:19
npm ERR! npm ERR!     at nextTickCallback (/home/lev145/Проекты/Проект БЭМ/node_modules/bem-core/node_modules/kew/kew.js:47:28)
npm ERR! npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:78:11)
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /home/lev145/.npm/_logs/2022-08-18T16_20_03_258Z-debug-0.log

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/lev145/.npm/_logs/2022-08-18T16_18_04_590Z-debug-0.log

Я в node.js новичёк, думаю, что дело в каких-то зависимостях проекта, тк в инструкции про PhantomJS ничего не нашёл

@LEv145
Copy link
Author

LEv145 commented Aug 18, 2022

Причём как я выяснил, PhantomJS уже мёртв, а его использование небезопасно
ariya/phantomjs#15344

@LEv145 LEv145 changed the title Ошибка при сборке проекта (PhantomJS) Ошибка при сборке проекта + требование неподдерживаемого пакета PhantomJS Aug 18, 2022
@LEv145 LEv145 changed the title Ошибка при сборке проекта + требование неподдерживаемого пакета PhantomJS Требование неподдерживаемого(опасного) пакета PhantomJS Aug 19, 2022
@LEv145
Copy link
Author

LEv145 commented Aug 19, 2022

Нашёл решение, сам не проверял, но может кому поможет
изображение

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant