question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Admin CLI installation fails with Node 9.7.2

See original GitHub issue

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Executing npx yarn install within /admin-cli should work just fine.

What is the current behavior?

Currently when trying to install admin-cli dependencies I get:

❯ rm -rf node_modules && npx yarn install                                                                                                       [0/235]
npx: installed 1 in 1.585s                                                                                                                             
yarn install v1.6.0                                                                                                                                    
[1/4] 🔍  Resolving packages...                                                                                                                        
[2/4] 🚚  Fetching packages...                                                                                                                         
[3/4] 🔗  Linking dependencies...                                                                                                                      
warning "@machinelabs/supervisor > firebase > @firebase/database@0.2.1" has unmet peer dependency "@firebase/app-types@^0.1.0".                        
warning "@machinelabs/supervisor > firebase > @firebase/firestore@0.3.6" has unmet peer dependency "@firebase/app-types@^0.1.0".                       
warning "@machinelabs/supervisor > firebase > @firebase/functions@0.1.0" has unmet peer dependency "@firebase/app-types@^0.1.0".                       
warning "@machinelabs/supervisor > firebase > @firebase/storage@0.1.8" has unmet peer dependency "@firebase/app-types@^0.1.0".                         
warning "@machinelabs/supervisor > firebase > @firebase/auth > @firebase/auth-types@0.2.0" has unmet peer dependency "@firebase/app-types@^0.1.0".     
warning "@machinelabs/supervisor > firebase > @firebase/database > @firebase/database-types@0.2.0" has unmet peer dependency "@firebase/app-types@^0.1.0".                                                                                                                                                    
warning "@machinelabs/supervisor > firebase > @firebase/firestore > @firebase/firestore-types@0.2.2" has unmet peer dependency "@firebase/app-types@^0.1.0".                                                                                                                                                  
warning "@machinelabs/supervisor > firebase > @firebase/functions > @firebase/messaging-types@0.1.2" has unmet peer dependency "@firebase/app-types@^0.1.0".                                                                                                                                                  
warning "@machinelabs/supervisor > firebase > @firebase/storage > @firebase/storage-types@0.1.2" has unmet peer dependency "@firebase/app-types@^0.1.0".                                                                                                                                                      
[4/4] 📃  Building fresh packages...                                                                                                                   
[1/5] ⢀ grpc                                                                                                                                           
[-/5] ⢀ waiting...                                                                                                                                     
[3/5] ⢀ grpc                                                                                                                                           
[4/5] ⢀ @google-cloud/functions-emulator                                                                                                               
error /Users/pascalprecht/projects/machinelabs/machinelabs/admin-cli/node_modules/node-pty: Command failed.                                            
Exit code: 1                                                                                                                                           
Command: node scripts/install.js                                                                                                                       
Arguments:                                                                                                                                             
Directory: /Users/pascalprecht/projects/machinelabs/machinelabs/admin-cli/node_modules/node-pty                                                        
Output:                                                                                                                                                
module.js:559                                                                                                                                          
    throw err;                                                                                                                                         
    ^                                                                                                                                                  
                                                                                                                                                       
Error: Cannot find module '/Users/pascalprecht/.nvm/versions/node/v9.7.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'                   
    at Function.Module._resolveFilename (module.js:557:15)                                                                                             
    at Function.Module._load (module.js:484:25)

What are the steps to reproduce?

Run rm -rf node_modules && npx yarn install in admin-cli

Which version of MachineLabs (or the package) is affected ?

0.30.1+utc.2018.Apr.19-10.21.14

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
0x-r4bbitcommented, May 8, 2018

Okay, I’m not super familiar with brew on that front and I don’t know what you’ve tried already, but here’s some documentation on how to use older versions of brew formulas:

https://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula

Hope this helps.

0reactions
maartentibaucommented, May 8, 2018

Yea, the funny thing is that yarn doesn’t have previous formulas, tried that one already. But maybe I did something wrong.

Thanks in any case!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failure to start Cypress on a fresh install nvm #3116 - GitHub
I installed cypress given the npm installation guide using the latest Node.js and npm versions (Node is running under nvm).
Read more >
"Please try running this command again as Root/Administrator ...
Worked for me. Atom SASS Autocompile package error "/bin/sh: node-sass: command not found" required installing node-sass globally. – Gilberto.
Read more >
Release Notes | Firebase - Google
The Firebase Admin Node.js SDK (v11.2.1) is now available. This release includes fixes in Cloud Messaging and Cloud Firestore APIs. To install this...
Read more >
Chapter 9. Yum Red Hat Enterprise Linux 7
Yum performs automatic dependency resolution when updating, installing, or removing packages, and thus is able to automatically determine, fetch, and install ...
Read more >
Pacemaker Administration - ClusterLabs
Should the elected DC process (or the node it is on) fail, ... Pacemaker provides lower-level, command-line tools to manage the cluster.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found