meteor mup deploy failed - meteor

After mup init and mup setup server success with Meteor up, i run mup deploy and it fail at Verifying Deployment: FAILED :
-----------------------------------STDERR-----------------------------------
node-gyp rebuild
make: Entering directory '/bundle/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt/build'
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
COPY Release/bcrypt_lib.node
make: Leaving directory '/bundle/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt/build'
bcrypt#0.8.7 /bundle/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt
bindings#1.2.1 /bundle/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bindings
nan#2.3.5 /bundle/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/nan
> buffertools#2.1.4 install /bundle/bundle/programs/server/npm/node_modules/bufferstream/node_modules/buffertools
> node-gyp rebuild
I use Digital Ocean server on Ubuntu 14.04. I've install Node v4.4.7 and node-gyp.
If i run node-gyp rebuild, i've this error :
module.js:327
throw err;
^
Error: Cannot find module 'graceful-fs'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/share/node-gyp/lib/node-gyp.js:12:10)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
Can you help me ?

Meteor cannot find the module.
Usually running meteor npm install <missing module> solves the issue.
Try running meteor npm install --save graceful-fs before deploying.

Related

meteor create throws error: module.js:549 Could not install npm dependencies for test-packages

When I tried running meteor create boilerplate the following showed up on my screen. I did some research and came up with an answer which I have posted below. It took sometime to solve so I'm sharing my solution with the hopes of helping others.
Here is is the error in its entirety.
/Users/user/.meteor/packages/meteor-tool/.1.6.1_1.o8hqcq.5zvm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:218
throw error;
^
Error: Error: Could not install npm dependencies for test-packages: Command failed: /Users/user/.meteor/packages/meteor-tool/.1.6.1_1.o8hqcq.5zvm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm install --production=false
module.js:549
throw err;
^
Error: Cannot find module '../lib/utils/unsupported.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at /Users/user/.meteor/packages/meteor-tool/.1.6.1_1.o8hqcq.5zvm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm:19:21
at Object.<anonymous> (/Users/user/.meteor/packages/meteor-tool/.1.6.1_1.o8hqcq.5zvm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm:92:3)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
module.js:549
throw err;
^
Error: Cannot find module '../lib/utils/unsupported.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at /Users/user/.meteor/packages/meteor-tool/.1.6.1_1.o8hqcq.5zvm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm:19:21
at Object.<anonymous> (/Users/user/.meteor/packages/meteor-tool/.1.6.1_1.o8hqcq.5zvm++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm:92:3)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Object.error (/tools/utils/buildmessage.js:430:11)
at /tools/cli/default-npm-deps.js:36:20
at /tools/utils/buildmessage.js:334:18
at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:333:36
at exports.EnvironmentVariable.withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.enterJob (/tools/utils/buildmessage.js:324:26)
at Object.install (/tools/cli/default-npm-deps.js:27:27)
at Command.func (/tools/cli/commands.js:801:36)
Any help is greatly appreciated.
To solve this, I first uninstalled node using the following:
brew uninstall node;
# or `brew uninstall --force node` which removes all versions
brew prune;
rm -f /usr/local/bin/npm /usr/local/lib/dtrace/node.d;
rm -rf ~/.npm;
Then reinstalled node using the following:
brew install node;
which node # => /usr/local/bin/node
export NODE_PATH='/usr/local/lib/node_modules' # <--- add this ~/.bashrc
Then I deleted Meteor using the following:
sudo rm /usr/local/bin/meteor
rm -rf ~/.meteor
Repaired permissions:
sudo chown -R $(whoami) ~/.npm
Then reinstall Meteor:
curl https://install.meteor.com/ | sh
Now, the error is gone!
Sources:
How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
How can I completely uninstall and then reinstall Meteor.js?

Gertting Error installing firebase cli in linux mint

I use crazi_boii#crazi-Boii ~ $ sudo npm install -g firebase-tools to install the cli.
and the cmd get executed perfectly.
this is the error i get after typing the command "firebase --version"
/usr/local/lib/node_modules/firebase-tools/node_modules/tar/lib/pack.js:32
const EOF = Buffer.alloc(1024)
^
TypeError: Buffer.alloc is not a function
at Object.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/tar/lib/pack.js:32:20)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/tar/lib/create.js:6:14)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
pls help. .
Thank you
Cloud Functions for Firebase uses node 6, as stated in the documentation. You're using a much older version, so you'll need to upgrade your node installation. If you don't want to use a package manager to force an upgrade for what you have now, you can install any version of node in your home directory using Node Version Manager.

Why does Meteor /Mupx deployment fail on one computer but not another?

I am able to deploy to digital ocean from one computer, but when I try to make a change and deploy from another laptop I get this error. The configuration on both is almost identical except the start.sh file lives in two separate places.
Verifying deployment: FAILED
-----------------------------------STDERR-----------------------------------
package.json meteor-dev-bundle#0.0.0 No description
npm WARN package.json meteor-dev-bundle#0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle#0.0.0 No README data
npm WARN cannot run in wd meteor-dev-bundle#0.0.0 node npm-rebuild.js (wd=/bundle/bundle/programs/server)
=> Starting meteor app on port:80
assert.js:93
throw new assert.AssertionError({
^
AssertionError: "undefined" === "function"
at wrapPathFunction (/bundle/bundle/programs/server/mini-files.js:77:10)
at Object.<anonymous> (/bundle/bundle/programs/server/mini-files.js:108:24)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:9:13)
at Module._compile (module.js:456:26)
=> Redeploying previous version of the app
-----------------------------------STDOUT-----------------------------------
To see more logs type 'mup logs --tail=50'
----------------------------------------------------------------------------
mup logs --tail=50
loaded mup.js from /Users/...
1 Validation Errors
- "meteor.env.ROOT_URL" with value "app.com" fails to match the valid url with "http://" or "https://" pattern
If you think there is a bug in the mup.js validator, please
create an issue at https://github.com/zodern/meteor-up
mupx logs --tail=50
Meteor Up: Production Quality Meteor Deployments
------------------------------------------------
Configuration file : mup.json
Settings file : settings.json
[45.55.131.119] at wrapPathFunction (/bundle/bundle/programs/server/mini-files.js:77:10)
[45.55.131.119] at Object.<anonymous> (/bundle/bundle/programs/server/mini-files.js:108:24)
[45.55.131.119] at Module._compile (module.js:456:26)
[45.55.131.119] at Object.Module._extensions..js (module.js:474:10)
[45.55.131.119] at Module.load (module.js:356:32)
[45.55.131.119] at Function.Module._load (module.js:312:12)
[45.55.131.119] at Module.require (module.js:364:17)
[45.55.131.119] at require (module.js:380:17)
[45.55.131.119] at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:9:13)
[45.55.131.119] at Module._compile (module.js:456:26)
[45.55.131.119] npm WARN deprecated This version of npm lacks support for important features,
[45.55.131.119] npm WARN deprecated such as scoped packages, offered by the primary npm
[45.55.131.119] npm WARN deprecated registry. Consider upgrading to at least npm#2, if not the
[45.55.131.119] npm WARN deprecated latest stable version. To upgrade to npm#2, run:
[45.55.131.119] npm WARN deprecated
[45.55.131.119] npm WARN deprecated npm -g install npm#latest-2
[45.55.131.119] npm WARN deprecated
[45.55.131.119] npm WARN deprecated To upgrade to the latest stable version, run:
[45.55.131.119] npm WARN deprecated
npm WARN deprecated npm -g install npm#latest
npm WARN deprecated
[45.55.131.119] npm WARN deprecated (Depending on how Node.js was installed on your system, you
[45.55.131.119] => Starting meteor app on port:80
[45.55.131.119] npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if
npm WARN deprecated on Windows, run them from an Administrator prompt.)
npm WARN deprecated
npm WARN deprecated If you're running the version of npm bundled with
npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS
npm WARN deprecated will be bundled with a version of npm#2, which has some small
npm WARN deprecated backwards-incompatible changes made to `npm run-script` and
npm WARN deprecated semver behavior.
npm WARN package.json meteor-dev-bundle#0.0.0 No description
npm WARN package.json meteor-dev-bundle#0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle#0.0.0 No README data
npm WARN cannot run in wd meteor-dev-bundle#0.0.0 node npm-rebuild.js (wd=/bundle/bundle/programs/server)
assert.js:93
throw new assert.AssertionError({
^
AssertionError: "undefined" === "function"
at wrapPathFunction (/bundle/bundle/programs/server/mini-files.js:77:10)
at Object.<anonymous> (/bundle/bundle/programs/server/mini-files.js:108:24)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
[45.55.131.119] at Module.load (module.js:356:32)
[45.55.131.119] at Function.Module._load (module.js:312:12)
[45.55.131.119] at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:9:13)
at Module._compile (module.js:456:26)
This generally happens when the node versions are incompatible between the two systems. You sure that both the systems have same version of Node and npm.

Start Meteor Build

After build my Meteor APP, i would like start this with NodeJS.
I go to my /build/ folder, and run node main.js but i've this error :
Error: Cannot find module 'fibers'
Error: Cannot find module 'fibers'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\wamp\www\www.meteor.lan\build\app\bundle\programs\server\boot.js:1:75)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
I'm use Meteor 1.4 and Node 4.4.7 on Windows.
Do you have any idea how i can start my Meteor APP after build ?
Thank you :)
You'll have to install all packages, not just fibers. Inside you build directory:
cd programs\server
npm install
Try to install npm install fibers

I can't get laika to work with bdd

I'm using meteor 0.6.4.1, laika 0.2.24 and node.js 0.10.12. Tests with tdd worked fine, but I tried to use bdd with laika and it failed. I downloaded this demo project https://github.com/zvictor/laika-extended-example but also failed. I made a simple test with mocha and should (only node.js, not meteor) and worked fine. This is the error I got with the demo project:
module.js:340
throw err;
^
Error: Cannot find module 'should'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/camilo/Documents/Pruebas/Meteor/laika-extended-example/tests/$setup.js:1:72)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Edit
I installed should with sudo npm install -g should
Edit 2
Based on skishore comment, I used npm link should and now the problem changed. First, I got it:
injecting laika...
loading phantomjs...
loading initial app pool...
And nothing more happen so I tried with laika -D to see the logs:
[laika log] accepting the following extensions: (js)
injecting laika...
loading phantomjs...
[app touch log] [[[[[ ~/Documents/Pruebas/Meteor/laika-extended-example ]]]]]
[app touch log] => Meteor server running on: http://localhost:20472/
loading initial app pool...
[laika log] using nodejs bin(from meteor): /Users/camilo/.meteor/tools/11f45b3996/bin/node
[server log]
[server log] /Users/camilo/Documents/Pruebas/Meteor/laika-extended-example/.meteor/local/build/server/server.js:325
}).run();
^
[server log] ReferenceError: module is not defined
at app/node_modules/should/lib/eql.js:5:1
at /Users/camilo/Documents/Pruebas/Meteor/laika-extended-example/.meteor/local/build/server/server.js:286:12
at Array.forEach (native)
at Function._.each._.forEach (/Users/camilo/.meteor/tools/11f45b3996/lib/node_modules/underscore/underscore.js:79:11)
at run (/Users/camilo/Documents/Pruebas/Meteor/laika-extended-example/.meteor/local/build/server/server.js:227:7)
From the readme in the Github: you need to install should. Use npm:
sudo npm install -g should

Resources