SychO the Flarum CLI is install successfully, but errors occurred while installing, it shows
npm WARN EBADENGINE Unsupported engine { package: 'mem-fs@2.2.1',
npm WARN EBADENGINE required: { node: '>=12' },
npm WARN EBADENGINE current: { node: 'v10.24.0', npm: '7.20.5' } }
npm WARN EBADENGINE Unsupported engine { package: 'mem-fs-editor@8.1.2',
npm WARN EBADENGINE required: { node: '>=12.10.0' },
npm WARN EBADENGINE current: { node: 'v10.24.0', npm: '7.20.5' } }
changed 367 packages, and audited 368 packages in 44s
27 packages are looking for funding
run `npm fund` for details
2 high severity vulnerabilities
Some issues need review, and may require choosing
a different dependency.
**Run `npm audit` for details.**
and i ran npm audit
for details, then i got this full error log:
0 verbose cli [ '/usr/bin/node', '/usr/local/bin/npm', 'audit' ]
1 info using npm@7.20.5
2 info using node@v10.24.0
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 3ms
6 timing config:load:builtin Completed in 3ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 0ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:/root/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:validate Completed in 0ms
15 timing config:load:credentials Completed in 2ms
16 timing config:load:setEnvs Completed in 1ms
17 timing config:load Completed in 10ms
18 timing npm:load:configload Completed in 10ms
19 timing npm:load:setTitle Completed in 0ms
20 timing npm:load:setupLog Completed in 0ms
21 timing config:load:flatten Completed in 2ms
22 timing npm:load:cleanupLog Completed in 3ms
23 timing npm:load:configScope Completed in 0ms
24 timing npm:load:projectScope Completed in 1ms
25 timing npm:load Completed in 19ms
26 timing arborist:ctor Completed in 1ms
27 timing command:audit Completed in 5ms
28 verbose stack Error: loadVirtual requires existing shrinkwrap file
28 verbose stack at Arborist.loadVirtual (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/load-virtual.js:57:18)
29 verbose cwd /root
30 verbose Linux 4.19.0-10-amd64
31 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "audit"
32 verbose node v10.24.0
33 verbose npm v7.20.5
34 error code ENOLOCK
35 error audit This command requires an existing lockfile.
36 error audit Try creating one first with: npm i --package-lock-only
37 error audit Original error: loadVirtual requires existing shrinkwrap file
38 verbose exit 1
I can run flarum-cli init
, and it can generate the skeleton of extension. I just don't know what these errors means and if they have a negative effect on my server.