I came across an issue when doing npm install with the ziti console it needs to be updated to node v18.13.0 and .
Below I will paste the error.
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'io.netfoundry.zac@2.9.2',
npm WARN EBADENGINE required: { node: '>=18.13.0' },
npm WARN EBADENGINE current: { node: 'v16.20.2', npm: '8.19.4' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@apidevtools/json-schema-ref-parser@10.0.1',
npm WARN EBADENGINE required: { node: '>= 17' },
npm WARN EBADENGINE current: { node: 'v16.20.2', npm: '8.19.4' }
npm WARN EBADENGINE }
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /ziti-console/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/ziti-console/node_modules'
npm ERR! [Error: EACCES: permission denied, mkdir '/ziti-console/node_modules'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/ziti-console/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/tech/.npm/_logs/2023-09-28T00_53_21_423Z-debug-0.log
Here is what I did to get it working.
tech@tech-HP-Z620-Workstation:/ziti-console$ nvm install 18.13.0
Downloading and installing node v18.13.0...
Downloading https://nodejs.org/dist/v18.13.0/node-v18.13.0-linux-x64.tar.xz...
######################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v18.13.0 (npm v8.19.3)
tech@tech-HP-Z620-Workstation:/ziti-console$ npm install
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /ziti-console/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/ziti-console/node_modules'
npm ERR! [Error: EACCES: permission denied, mkdir '/ziti-console/node_modules'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/ziti-console/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/tech/.npm/_logs/2023-09-28T01_01_07_304Z-debug-0.log
tech@tech-HP-Z620-Workstation:/ziti-console$ sudo chown -R $(whoami) /ziti-console
tech@tech-HP-Z620-Workstation:/ziti-console$ sudo chmod -R 775 /ziti-console
tech@tech-HP-Z620-Workstation:/ziti-console$ sudo npm install
sudo: npm: command not found
tech@tech-HP-Z620-Workstation:/ziti-console$ sudo npm install
sudo: npm: command not found
tech@tech-HP-Z620-Workstation:/ziti-console$ npm install
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 There’s Math.random(), and then there’s Math.random() · V8 for details.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
added 205 packages, and audited 454 packages in 11s
37 packages are looking for funding
run npm fund
for details
2 moderate severity vulnerabilities
Some issues need review, and may require choosing
a different dependency.
Run npm audit
for details.
npm notice
npm notice New major version of npm available! 8.19.3 -> 10.1.0
npm notice Changelog: Release v10.1.0 · npm/cli · GitHub
npm notice Run npm install -g npm@10.1.0 to update!
npm notice
tech@tech-HP-Z620-Workstation:/ziti-console$ npm install -g npm@10.1.0
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: npm@10.1.0
npm ERR! notsup Not compatible with your version of node/npm: npm@10.1.0
npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"}
npm ERR! notsup Actual: {"npm":"8.19.3","node":"v18.13.0"}
npm ERR! A complete log of this run can be found in:
npm ERR! /home/tech/.npm/_logs/2023-09-28T01_03_16_510Z-debug-0.log