npm init svelte@next my-app
Error
#2798
Answered
by
dummdidumm
DanaCoding
asked this question in
Q&A
-
Describe the bugReproduction// cmd
Logs0 verbose cli [
0 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli 'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli 'init',
0 verbose cli 'svelte@next',
0 verbose cli 'my-app'
0 verbose cli ]
1 info using [email protected]
2 info using [email protected]
3 timing config:load:defaults Completed in 2ms
4 timing config:load:file:C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 2ms
5 timing config:load:builtin Completed in 2ms
6 timing config:load:cli Completed in 1ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:F:\workspace\.npmrc Completed in 0ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:C:\Users\Administrator\.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:C:\Users\Administrator\AppData\Roaming\npm\etc\npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 9ms
19 verbose npm-session a32a2f5cf2f2b62f
20 timing npm:load Completed in 22ms
21 http fetch GET 304 https://registry.npmjs.org/create-svelte 1560ms (from cache)
22 timing arborist:ctor Completed in 1ms
23 timing arborist:ctor Completed in 0ms
24 timing arborist:ctor Completed in 0ms
25 timing command:exec Completed in 1737ms
26 timing command:init Completed in 1866ms
27 verbose stack Error: command failed
27 verbose stack at ChildProcess.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27)
27 verbose stack at ChildProcess.emit (events.js:210:5)
27 verbose stack at maybeClose (internal/child_process.js:1021:16)
27 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
28 verbose cwd F:\workspace
29 verbose Windows_NT 10.0.19042
30 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "init" "svelte@next" "my-app"
31 verbose node v12.12.0
32 verbose npm v7.6.3
33 error code 1
34 error path F:\workspace
35 error command failed
36 error command C:\WINDOWS\system32\cmd.exe /d /s /c create-svelte my-app
37 verbose exit 1 System InfoSystem:
OS: Windows 10 10.0.19042
CPU: (4) x64 Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
Memory: 8.66 GB / 15.89 GB
Binaries:
Node: 12.12.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
npm: 7.6.3 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (95.0.1020.53)
Internet Explorer: 11.0.19041.1202 Severityblocking all usage of SvelteKit Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Answered by
dummdidumm
Nov 14, 2021
Replies: 1 comment 4 replies
-
You are using an outdated version of NodeJS which is not supported by SvelteKit. Upgrade to Node 14 or 16 and the error should be gone. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
dummdidumm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are using an outdated version of NodeJS which is not supported by SvelteKit. Upgrade to Node 14 or 16 and the error should be gone.