When I use Ghost-CLI to install ghost. The error always occur when “Checking for latest ghost version”
ghost install
Message: Command failed: yarn info ghost versions --json
{“type”:“info”,“data”:“If you think this is a bug, please open a bug report with the information provided in "/var/www/ghost/yarn-error.log".”}yarn info | Yarn  for documentation about this command.”}
Exit code: 1
Debug Information:
             
            
              
            
           
          
            
              
                Kate  
              
                  
                    August 27, 2018,  4:54pm
                   
                  2 
               
             
            
              
  
  
    
  
  
    
    
      
        opened 04:55AM - 19 Mar 18 UTC 
      
        
          closed 09:18AM - 17 Sep 18 UTC 
        
      
     
    
        
          needs info
         
        
          recommended-stack
         
    
   
 
  
    A case exists on the problem see [#9511](https://github.com/TryGhost/Ghost/issue… s/9511).
Since it's closed, I was told to open another one, which I am doing here.
### Issue Summary
When proceeding with the standard "ghostuser" account and use "sudo", on a Debian Stretch Linux (9.4), with NodeJS v8.10.0 installed, I try to install Ghost-CLI v1.5.2, it starts and runs in a loop.
Here are the details below:
### Steps to Reproduce
1. Create a New User
```
adduser ghostuser
cat /etc/passwd
ghostuser:x:1002:1002:Ghost User,,,:/home/ghostuser:/bin/bash
```
2. Super User Privileges
```
usermod -aG sudo ghostuser
```
3. Installation NodeJS v8.10.0 and NPM
```
ghostuser@host:~$ sudo apt install apt-transport-https
ghostuser@host:~$ curl -sL https://deb.nodesource.com/setup_8.x | bash -
ghostuser@host:~$ sudo apt install -y nodejs
ghostuser@host:~$ sudo apt install -y build-essential
```
4. Check NodeJS and NPM versions
```
ghostuser@host:~$ node -v && npm -v
v8.10.0
5.6.0
```
5. Installation Ghost-CLI v1.5.2 (for now the lasted)
```
ghostuser@host:~$ sudo npm i -g ghost-cli@latest
npm WARN deprecated yarn@1.3.2: It is recommended to install Yarn using the native installation method for your environment. See https://yarnpkg.com/en/docs/install
npm WARN deprecated fs-promise@0.5.0: Use mz or fs-extra^3.0 with Promise Support 
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/lib/node_modules/ghost-cli/node_modules/dtrace-provider/.node-gyp/8.10.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/ghost-cli/node_modules/dtrace-provider/.node-gyp"
...
```
Sorry but same issue with 'sudo' and need a break 'Ctrl+C' to exit this loop.
BUT, really curious, if repeat install Ghost-CLI, this upgrade and done :
```
ghostuser@host:~$ sudo npm i -g ghost-cli@latest                                                             
[sudo] Mot de passe de ghostuser : 
npm WARN deprecated yarn@1.3.2: It is recommended to install Yarn using the native installation method for your environment. See https://yarnpkg.com/en/docs/install
npm WARN deprecated fs-promise@0.5.0: Use mz or fs-extra^3.0 with Promise Support                            
/usr/bin/ghost -> /usr/lib/node_modules/ghost-cli/bin/ghost                                                  
+ ghost-cli@1.5.2
updated 1 package in 7.703s
```
Check :
```
ghostuser@host:~$ ghost version                                                                              
Ghost-CLI version: 1.5.2
```
I repeated the same test twice and it reproduces the same problem well: 
first install failed in loop, break this with Ctrl+C and try second install, this indicate rollback then upgrade and done. 
   
   
  
    
    
  
  
 
That is currently a problem with Node v8.
This comment  will help you. We are working on this.
             
            
              
            
           
          
            
              
                system  
              
                  
                    September 10, 2018,  5:02pm
                   
                  3 
               
             
            
              This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.