package.json needs to updated

Created on 9 July 2024, 5 months ago

Problem/Motivation

While running npm i, the dependencies are not getting installed properly, as a result gulp is also not running as its not finding the dependencies. Seems like the package.json needs to updated as some of its dependencies have been deprecated!

Steps to reproduce

Run npm i to install all the dependencies.
The installation will fail by throwing error:

npm WARN deprecated osenv@0.1.5: This package is no longer supported.
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
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 source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated npmlog@4.1.2: This package is no longer supported.
npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated are-we-there-yet@1.1.7: This package is no longer supported.
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported
npm WARN deprecated q@1.5.1: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
npm WARN deprecated 
npm WARN deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
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 rcloader@0.2.2: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
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 gauge@2.7.4: This package is no longer supported.
npm WARN deprecated fstream@1.0.12: This package is no longer supported.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/pngquant-bin',
npm WARN cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/pngquant-bin/vendor'] {
npm WARN cleanup       errno: -39,
npm WARN cleanup       code: 'ENOTEMPTY',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/pngquant-bin/vendor'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/optipng-bin',
npm WARN cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/optipng-bin/vendor'] {
npm WARN cleanup       errno: -39,
npm WARN cleanup       code: 'ENOTEMPTY',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/optipng-bin/vendor'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/gifsicle',
npm WARN cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/gifsicle/vendor'] {
npm WARN cleanup       errno: -39,
npm WARN cleanup       code: 'ENOTEMPTY',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/gifsicle/vendor'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules',
npm WARN cleanup     [Error: ENOTEMPTY: directory not empty, rmdir '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/gifsicle/vendor'] {
npm WARN cleanup       errno: -39,
npm WARN cleanup       code: 'ENOTEMPTY',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/gifsicle/vendor'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/node-sass
npm ERR! command failed
npm ERR! command sh -c node scripts/build.js
npm ERR! Building: /usr/bin/node /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli   '/usr/bin/node',
npm ERR! gyp verb cli   '/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/node-gyp/bin/node-gyp.js',
npm ERR! gyp verb cli   'rebuild',
npm ERR! gyp verb cli   '--verbose',
npm ERR! gyp verb cli   '--libsass_ext=',
npm ERR! gyp verb cli   '--libsass_cflags=',
npm ERR! gyp verb cli   '--libsass_ldflags=',
npm ERR! gyp verb cli   '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@18.19.1 | linux | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python2
npm ERR! gyp verb `which` failed     at getNotFoundError (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:13:12)
npm ERR! gyp verb `which` failed     at F (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:68:19)
npm ERR! gyp verb `which` failed     at E (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:80:29)
npm ERR! gyp verb `which` failed     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:89:16
npm ERR! gyp verb `which` failed     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/isexe/index.js:42:5
npm ERR! gyp verb `which` failed     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/isexe/mode.js:8:5
npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:202:21)
npm ERR! gyp verb `which` failed  python2 Error: not found: python2
npm ERR! gyp verb `which` failed     at getNotFoundError (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:13:12)
npm ERR! gyp verb `which` failed     at F (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:68:19)
npm ERR! gyp verb `which` failed     at E (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:80:29)
npm ERR! gyp verb `which` failed     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:89:16
npm ERR! gyp verb `which` failed     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/isexe/index.js:42:5
npm ERR! gyp verb `which` failed     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/isexe/mode.js:8:5
npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:202:21) {
npm ERR! gyp verb `which` failed   code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python
npm ERR! gyp verb `which` failed     at getNotFoundError (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:13:12)
npm ERR! gyp verb `which` failed     at F (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:68:19)
npm ERR! gyp verb `which` failed     at E (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:80:29)
npm ERR! gyp verb `which` failed     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:89:16
npm ERR! gyp verb `which` failed     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/isexe/index.js:42:5
npm ERR! gyp verb `which` failed     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/isexe/mode.js:8:5
npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:202:21)
npm ERR! gyp verb `which` failed  python Error: not found: python
npm ERR! gyp verb `which` failed     at getNotFoundError (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:13:12)
npm ERR! gyp verb `which` failed     at F (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:68:19)
npm ERR! gyp verb `which` failed     at E (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:80:29)
npm ERR! gyp verb `which` failed     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:89:16
npm ERR! gyp verb `which` failed     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/isexe/index.js:42:5
npm ERR! gyp verb `which` failed     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/isexe/mode.js:8:5
npm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:202:21) {
npm ERR! gyp verb `which` failed   code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
npm ERR! gyp ERR! stack     at PythonFinder.failNoPython (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/node-gyp/lib/configure.js:484:19)
npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/node-gyp/lib/configure.js:406:16)
npm ERR! gyp ERR! stack     at F (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:68:16)
npm ERR! gyp ERR! stack     at E (/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:80:29)
npm ERR! gyp ERR! stack     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/which/which.js:89:16
npm ERR! gyp ERR! stack     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack     at /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:202:21)
npm ERR! gyp ERR! System Linux 6.8.0-36-generic
npm ERR! gyp ERR! command "/usr/bin/node" "/home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd /home/sourojeet/Desktop/WebDev/D10/web/themes/contrib/da_vinci/node_modules/node-sass
npm ERR! gyp ERR! node -v v18.19.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok 
npm ERR! Build failed with error code: 1

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/sourojeet/.npm/_logs/2024-07-09T13_27_09_654Z-debug-0.log

Proposed resolution

Update the package.json file.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

9.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024