Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows][7.9.0] npx envinfo@latests fails on Powershell #238

Open
cipolleschi opened this issue Jun 26, 2023 · 0 comments
Open

[Windows][7.9.0] npx envinfo@latests fails on Powershell #238

cipolleschi opened this issue Jun 26, 2023 · 0 comments

Comments

@cipolleschi
Copy link

cipolleschi commented Jun 26, 2023

Hi there, @cipolleschi here from the React Native core team.

We are using netinfo in CircleCI and since last week, it started failing on Windows with:

npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\circleci\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\circleci\AppData\Roaming\npm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\circleci\AppData\Local\npm-cache\_logs\2023-06-23T10_36_30_843Z-debug-0.log

Exited with code exit status 1

The failures started suddenly and it looks like that it started at the same time that envinfo 7.9.0 was released.

So far, we mitigated the issue by disabling the invocation of envinfo for Windows, but we would like to get it back.

Could you look into that, please?
Is there anything I can do to support you?

Thank you so much!


Some more information: running the command from a ssh powershell to CircleCI I got this, when doing a cat of the log:

1 info using [email protected]                                                          
2 info using [email protected]                                                      
3 timing npm:load:whichnode Completed in 1ms                                    
4 timing config:load:defaults Completed in 2ms                                  
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Complet
ed in 2ms                                                                       
6 timing config:load:builtin Completed in 2ms                                   
7 timing config:load:cli Completed in 3ms                                       
8 timing config:load:env Completed in 2ms                                       
9 timing config:load:project Completed in 2ms                                   
10 timing config:load:file:C:\Users\circleci\.npmrc Completed in 0ms            
11 timing config:load:user Completed in 0ms                                     
12 timing config:load:file:C:\Users\circleci\AppData\Roaming\npm\etc\npmrc Compl
eted in 0ms                                                                     
13 timing config:load:global Completed in 0ms                                   
14 timing config:load:setEnvs Completed in 2ms                                  
15 timing config:load Completed in 15ms                                         
16 timing npm:load:configload Completed in 16ms                                 
17 timing npm:load:mkdirpcache Completed in 1ms                                 
18 timing npm:load:mkdirplogs Completed in 0ms                                  
19 verbose title npm exec [email protected]                                         
20 verbose argv "exec" "--" "[email protected]"                                     
21 timing npm:load:setTitle Completed in 1ms                                    
22 timing config:load:flatten Completed in 4ms                                  
23 timing npm:load:display Completed in 5ms                                     
24 verbose logfile logs-max:10 dir:C:\Users\circleci\AppData\Local\npm-cache\_lo
gs\2023-06-26T09_35_45_816Z-                                                    
25 verbose logfile C:\Users\circleci\AppData\Local\npm-cache\_logs\2023-06-26T09
_35_45_816Z-debug-0.log                                                         
26 timing npm:load:logFile Completed in 8ms                                     
27 timing npm:load:timers Completed in 0ms                                      
28 timing npm:load:configScope Completed in 0ms                                 
29 timing npm:load Completed in 35ms                                            
30 silly logfile done cleaning log files                                        
31 timing arborist:ctor Completed in 1ms                                        
32 http fetch GET 200 https://registry.npmjs.org/envinfo 173ms (cache revalidate
d)                                                                              
33 timing arborist:ctor Completed in 0ms                                        
34 timing command:exec Completed in 204ms                                       
35 verbose stack Error: ENOENT: no such file or directory, lstat 'C:\Users\circl
eci\AppData\Roaming\npm'                                                        
36 verbose cwd C:\Users\circleci                                                
37 verbose Windows_NT 10.0.17763                                                
38 verbose node v18.16.1                                                        
39 verbose npm  v9.5.1                                                          
40 error code ENOENT                                                            
41 error syscall lstat                                                          
42 error path C:\Users\circleci\AppData\Roaming\npm                             
43 error errno -4058                                                            
44 error enoent ENOENT: no such file or directory, lstat 'C:\Users\circleci\AppD
ata\Roaming\npm'                                                                
45 error enoent This is related to npm not being able to find a file.           
45 error enoent                                                                 
46 verbose exit -4058                                                           
47 timing npm Completed in 269ms                                                
48 verbose code -4058                                                           
49 error A complete log of this run can be found in:                            
49 error     C:\Users\circleci\AppData\Local\npm-cache\_logs\2023-06-26T09_35_45
_816Z-debug-0.log
cortinico added a commit to cortinico/react-native that referenced this issue Feb 13, 2024
Summary:
CI is broken. Let's not bother attempting to fixing it as it's attempting to call `envinfo` on Windows
which no one really looks into.
Also the maintainer is unresponsive: tabrindle/envinfo#238

Changelog:
[Internal] [Changed] - Do not invoke envinfo on windows

Differential Revision: D53698194
cortinico added a commit to cortinico/react-native that referenced this issue Feb 13, 2024
Summary:
CI is broken. Let's not bother attempting to fixing it as it's attempting to call `envinfo` on Windows
which no one really looks into.
Also the maintainer is unresponsive: tabrindle/envinfo#238

Changelog:
[Internal] [Changed] - Do not invoke envinfo on windows

Reviewed By: cipolleschi

Differential Revision: D53698194
cortinico added a commit to cortinico/react-native that referenced this issue Feb 13, 2024
Summary:
CI is broken. Let's not bother attempting to fixing it as it's attempting to call `envinfo` on Windows
which no one really looks into.
Also the maintainer is unresponsive: tabrindle/envinfo#238

Changelog:
[Internal] [Changed] - Do not invoke envinfo on windows

Reviewed By: cipolleschi

Differential Revision: D53698194
facebook-github-bot pushed a commit to facebook/react-native that referenced this issue Feb 13, 2024
Summary:
CI is broken. Let's not bother attempting to fixing it as it's attempting to call `envinfo` on Windows
which no one really looks into.
Also the maintainer is unresponsive: tabrindle/envinfo#238

Changelog:
[Internal] [Changed] - Do not invoke envinfo on windows

Reviewed By: cipolleschi

Differential Revision: D53698194

fbshipit-source-id: db90ae6e773cf0a2f72ca1fc2d5faa3f56ed2edc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant