[SOLVED] Meteor 3.0 alpha/beta : any success on Ubuntu?

I’m currently in the process of migrating a number of big Meteor projects to 3.0. It’s working pretty fine on my development laptop, which is a MacBook Pro M2 Pro.

But whatever I try in order to replicate the upgrades on Ubuntu servers, or even to create new blank Meteor projects on a fresh Ubuntu distro, I get tons of errors. Sometimes the word “killed” weirdly appears at the beginning of the last log, partially overwriting the word “Extracting”, sometimes it’s a long list of errors, the first of which being related to the webapp package.

Here is an example of what the console displays after running meteor create test-app --release 3.0-beta.0 :

Using react skeleton                          
Something has happened while creating your app using git clone.
Will use cached version of skeletons.
Error message:  Using release option
=> Errors while creating your project                                              
                                              
While loading package webapp@2.0.0-beta300.0:
error: Command failed: /home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/npm rebuild
--update-binary
npm ERR! code 1
npm ERR! path /home/ubuntu/.meteor/packages/webapp/.2.0.0-beta300.0.76vhwg.c8hph++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/.temp-dyfmup.rj79o/node_modules/posix
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: not found: make
npm ERR! gyp ERR! stack     at getNotFoundError
(/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:10:17)
npm ERR! gyp ERR! stack     at
/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:57:18
npm ERR! gyp ERR! stack     at new Promise (<anonymous>)
npm ERR! gyp ERR! stack     at step
(/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:54:21)
npm ERR! gyp ERR! stack     at
/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:71:22
npm ERR! gyp ERR! stack     at new Promise (<anonymous>)
npm ERR! gyp ERR! stack     at subStep
(/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:69:33)
npm ERR! gyp ERR! stack     at
/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:80:22
npm ERR! gyp ERR! stack     at
/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack     at
/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! System Linux 6.2.0-37-generic
npm ERR! gyp ERR! command "/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"rebuild"
npm ERR! gyp ERR! cwd /home/ubuntu/.meteor/packages/webapp/.2.0.0-beta300.0.76vhwg.c8hph++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/.temp-dyfmup.rj79o/node_modules/posix
npm ERR! gyp ERR! node -v v20.9.0
npm ERR! gyp ERR! node-gyp -v v9.4.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /home/ubuntu/.npm/_logs/2024-01-28T10_06_04_037Z-debug-0.log
npm ERR! code 1
npm ERR! path /home/ubuntu/.meteor/packages/webapp/.2.0.0-beta300.0.76vhwg.c8hph++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/.temp-dyfmup.rj79o/node_modules/posix
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: not found: make
npm ERR! gyp ERR! stack     at getNotFoundError
(/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:10:17)
npm ERR! gyp ERR! stack     at
/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:57:18
npm ERR! gyp ERR! stack     at new Promise (<anonymous>)
npm ERR! gyp ERR! stack     at step
(/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:54:21)
npm ERR! gyp ERR! stack     at
/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:71:22
npm ERR! gyp ERR! stack     at new Promise (<anonymous>)
npm ERR! gyp ERR! stack     at subStep
(/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:69:33)
npm ERR! gyp ERR! stack     at
/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/node_modules/which/which.js:80:22
npm ERR! gyp ERR! stack     at
/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack     at
/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! System Linux 6.2.0-37-generic
npm ERR! gyp ERR! command "/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node"
"/home/ubuntu/.meteor/packages/meteor-tool/.3.0.0-beta.0.15c5qmi.n7fu++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"rebuild"
npm ERR! gyp ERR! cwd /home/ubuntu/.meteor/packages/webapp/.2.0.0-beta300.0.76vhwg.c8hph++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/.temp-dyfmup.rj79o/node_modules/posix
npm ERR! gyp ERR! node -v v20.9.0
npm ERR! gyp ERR! node-gyp -v v9.4.0
npm ERR! gyp ERR! not ok

This is happening both for 3.0 alpha and beta, on Ubuntu versions 23.04 and 20.04.6 LTS.

Does anyone have a clue ?

You can start by solving this error

Thanks @rjdavid , I tried every way I know of to fix the make: command not found error in Ubuntu, although such a problem never appeared before… but the console sill raises a bunch of errors related to gyp on one server, while killing the meteor create process on another. Here is one of the strange results I obtain after several minutes :

Something has happened while creating your app using git clone.
Will use cached version of skeletons.
Error message:  Using release option
Killedding standard-minifier-css@1.9.3-b...  \

Guess I’ll wait for the official Meteor 3 release…

Posting this as issue in github might help so it will be in the radar of the meteor devs

Have you tried to install node-gyp package in Ubuntu? I remember that I had trouble with node-gyp once

2 Likes

at 3:00 mark I guess is related to your problem

1 Like

Guys, thank you so much :grinning:

npm install -g node-gyp solved the problem indeed, now I can create or upgrade projects to 3.0 beta.

Since it was addressed in the video, I guess the Meteor devs are already aware of it ?

1 Like

At the very least, it should be in the migration documentation to help those in similar situations

1 Like