npm install and npm run build failing
npm install
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@rollup/plugin-node-resolve@15.1.0',
npm WARN EBADENGINE required: { node: '>=14.0.0' },
npm WARN EBADENGINE current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'rollup@3.28.0',
npm WARN EBADENGINE required: { node: '>=14.18.0', npm: '>=8.0.0' },
npm WARN EBADENGINE current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@rollup/pluginutils@5.0.2',
npm WARN EBADENGINE required: { node: '>=14.0.0' },
npm WARN EBADENGINE current: { node: 'v12.22.12', npm: '7.5.2' }
npm WARN EBADENGINE }
npm WARN deprecated @types/browserslist@4.15.0: This is a stub types definition. browserslist provides its own type definitions, so you do not need this installed.
added 438 packages, and audited 439 packages in 1m
31 packages are looking for funding
run npm fund
for details
found 0 vulnerabilities
npm run build
build
rollup -c
internal/modules/cjs/loader.js:818
throw err;
^
Error: Cannot find module 'node:process'
Require stack:
- /home/anoble/go/src/bitbucket.org/ausocean/vidgrind/node_modules/rollup/dist/bin/rollup
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Module.<anonymous> (/home/anoble/go/src/bitbucket.org/ausocean/vidgrind/node_modules/rollup/dist/bin/rollup:16:19)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/anoble/go/src/bitbucket.org/ausocean/vidgrind/node_modules/rollup/dist/bin/rollup'
]
}
npm ERR! code 1
npm ERR! path /home/anoble/go/src/bitbucket.org/ausocean/vidgrind
npm ERR! command failed
npm ERR! command sh -c rollup -c
npm ERR! A complete log of this run can be found in:
npm ERR! /home/anoble/.npm/_logs/2023-08-12T09_43_20_044Z-debug.log
Comments (2)
-
reporter -
- changed status to resolved
Fixed in PR #262
- Log in to comment
I was able to make progress by upgrading my version of node. That said, I think the Readme should be clearer about the prerequisites, e.g., required node version, etc.
I now get the following build error:
npm run build
ts/site-menu.ts → s/site-menu.js...
[!] RollupError: Given name "site-menu" is not a legal JS identifier. If you need this, you can try "output.extend: true".
https://rollupjs.org/configuration-options/#output-extend
at error (/home/anoble/go/src/bitbucket.org/ausocean/vidgrind/node_modules/rollup/dist/shared/rollup.js:349:30)
at Object.iife (/home/anoble/go/src/bitbucket.org/ausocean/vidgrind/node_modules/rollup/dist/shared/rollup.js:16436:16)
at Chunk.render (/home/anoble/go/src/bitbucket.org/ausocean/vidgrind/node_modules/rollup/dist/shared/rollup.js:17365:27)
at async Promise.all (index 0)
at renderChunks (/home/anoble/go/src/bitbucket.org/ausocean/vidgrind/node_modules/rollup/dist/shared/rollup.js:18959:28)
at Bundle.generate (/home/anoble/go/src/bitbucket.org/ausocean/vidgrind/node_modules/rollup/dist/shared/rollup.js:19181:13)
at /home/anoble/go/src/bitbucket.org/ausocean/vidgrind/node_modules/rollup/dist/shared/rollup.js:27098:27
at catchUnfinishedHookActions (/home/anoble/go/src/bitbucket.org/ausocean/vidgrind/node_modules/rollup/dist/shared/rollup.js:26275:16)
at async Promise.all (index 0)
at build (/home/anoble/go/src/bitbucket.org/ausocean/vidgrind/node_modules/rollup/dist/bin/rollup:1558:5)