slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.93k stars 566 forks source link

'neon' is not recognized as an internal command #2150

Closed wiiznokes closed 1 year ago

wiiznokes commented 1 year ago

I never used npm before so I'm probably doing things wrong, but I'm having issue to run examples projects with it.

For example, the printerdemo app: cd into slint\examples\printerdemo\node run npm install And I have this error:

npm install
npm ERR! code 1
npm ERR! path C:\Users\lenai\Desktop\testDev\slint\api\node
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c neon build --release && tsc
npm ERR! 'neon' n'est pas reconnu en tant que commande interne
npm ERR! ou externe, un programme ex�cutable ou un fichier de commandes.     

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\lenai\AppData\Local\npm-cache\_logs\2023-01-30T16_44_32_195Z-debug-0.log

Here is the log file:

cat C:\Users\lenai\AppData\Local\npm-cache\_logs\2023-01-30T16_44_32_195Z-debug-0.log
0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@8.19.3
2 info using node@v18.13.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 2ms
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:file:C:\Users\lenai\Desktop\testDev\slint\examples\printerdemo\node\.npmrc Completed in 0ms
10 timing config:load:project Completed in 4ms
11 timing config:load:file:C:\Users\lenai\.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\Users\lenai\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 12ms
19 timing npm:load:configload Completed in 12ms
20 timing npm:load:mkdirpcache Completed in 1ms
21 timing npm:load:mkdirplogs Completed in 0ms
22 verbose title npm install
23 verbose argv "install"
24 timing npm:load:setTitle Completed in 1ms
25 timing config:load:flatten Completed in 2ms
26 timing npm:load:display Completed in 3ms
27 verbose logfile logs-max:10 dir:C:\Users\lenai\AppData\Local\npm-cache\_logs
28 verbose logfile C:\Users\lenai\AppData\Local\npm-cache\_logs\2023-01-30T16_44_32_195Z-debug-0.log
29 timing npm:load:logFile Completed in 6ms
30 timing npm:load:timers Completed in 0ms
31 timing npm:load:configScope Completed in 0ms
32 timing npm:load Completed in 23ms
33 timing arborist:ctor Completed in 0ms
34 silly logfile start cleaning logs, removing 2 files
35 silly logfile done cleaning log files
36 timing arborist:ctor Completed in 0ms
37 timing idealTree:init Completed in 16ms
38 timing idealTree:userRequests Completed in 0ms
39 silly idealTree buildDeps
40 timing idealTree:#root Completed in 0ms
41 timing idealTree:buildDeps Completed in 0ms
42 timing idealTree:fixDepFlags Completed in 0ms
43 timing idealTree Completed in 18ms
44 timing reify:loadTrees Completed in 19ms
45 timing reify:diffTrees Completed in 1ms
46 silly reify moves {}
47 timing reify:retireShallow Completed in 1ms
48 timing reify:createSparse Completed in 0ms
49 timing reify:loadBundles Completed in 0ms
50 silly audit bulk request { 'slint-ui': [ '0.3.4' ] }
51 timing reify:unpack Completed in 2ms
52 timing reify:unretire Completed in 0ms
53 timing build:queue Completed in 0ms
54 timing build:deps Completed in 0ms
55 timing build:queue Completed in 1ms
56 info run slint-ui@0.3.4 install ../../../api/node neon build --release && tsc
57 info run slint-ui@0.3.4 install { code: 1, signal: null }
58 timing reify:rollback:createSparse Completed in 0ms
59 timing reify:rollback:retireShallow Completed in 0ms
60 timing command:install Completed in 100ms
61 verbose stack Error: command failed
61 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:63:27)
61 verbose stack     at ChildProcess.emit (node:events:513:28)
61 verbose stack     at maybeClose (node:internal/child_process:1091:16)
61 verbose stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
62 verbose pkgid slint-ui@0.3.4
63 verbose cwd C:\Users\lenai\Desktop\testDev\slint\examples\printerdemo\node
64 verbose Windows_NT 10.0.22621
65 verbose node v18.13.0
66 verbose npm  v8.19.3
67 error code 1
68 error path C:\Users\lenai\Desktop\testDev\slint\api\node
69 error command failed
70 error command C:\WINDOWS\system32\cmd.exe /d /s /c neon build --release && tsc
71 error 'neon' n'est pas reconnu en tant que commande interne
71 error ou externe, un programme ex�cutable ou un fichier de commandes.
72 verbose exit 1
73 timing npm Completed in 224ms
74 verbose unfinished npm timer reify 1675097072314
75 verbose unfinished npm timer reify:audit 1675097072342
76 verbose unfinished npm timer auditReport:getReport 1675097072343
77 verbose unfinished npm timer reify:build 1675097072380
78 verbose unfinished npm timer build 1675097072380
79 verbose unfinished npm timer build:links 1675097072380
80 verbose unfinished npm timer build:run:install 1675097072381
81 verbose unfinished npm timer build:run:install:../../../api/node 1675097072381
82 verbose code 1
83 error A complete log of this run can be found in:
83 error     C:\Users\lenai\AppData\Local\npm-cache\_logs\2023-01-30T16_44_32_195Z-debug-0.log

I have no clues how to debug it, I tried on Linux and I have the same problem.

tronical commented 1 year ago

Can you try and see if first going into slint\api\node and running npm install there works, and the followed by npm install in slint\examples\printerdemo\node?

wiiznokes commented 1 year ago

It worked thank you!