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.
Related
I'm just started with Foundation CSS framework. All installation was fine, but when I'm trying to create my first project, I received this error.
foundation new
/usr/local/lib/node_modules/foundation-cli/lib/commands/info.js:7
module.exports = function(args = {}) {
^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
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)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/foundation-cli/lib/index.js:4:9)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
Thanks all.
It looks like your nodejs is outdated. Check what version you're running. If it's older than 6, ugrade and remove the older version. It should work.
I had the same issue.
Here are the steps I took:
Clear the cache sudo npm cache clean -f
Install a helper sudo npm install -g n
Install the latest stable version of Node sudo n stable
Found this previous post
After creating a new app, I get the following error when trying to run it.
module.js:327
throw err;
^
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:\tsdmn\tsdmn_system\_development\_01\_01\tsdmn-webportal_dev-01-01\.meteor\local\build\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)
Exited with code: 1
Your application is crashing. Waiting for file change.
It was working a few days ago, but it just started giving me this error when I run with "meteor". I can create the app without a problem but running it gives and error.
Meteor uses two different package management, via Atmosphere and via NPM.
Atmosphere management is done via the file .meteor/packages. Each line is added when you do a meteor add packageName. When you execute the meteor command it will read this file and download all the atmosphere dependencies.
For NPM, it's the same but the dependencies are listed in the package.json and to install all these dependencies you have to run meteor npm install. This will read the package.json and download everything it needs to node_modules.
For your specific case, Fiber dependency has not been download yet. You can probably see it in the package.json.
If you have just created a new app then you can see in the guide that meteor npm install in necessary to set up your project.
I'm doing the Meteor React.js tutorial part 8 here:
https://www.meteor.com/tutorials/react/adding-user-accounts
My application has been running perfectly up until this point. It crashes the moment I follow the first step in the tutorial which is to add the account packages by running the following command:
meteor add accounts-ui accounts-password
Upon doing this and attempting to run the project, the run fails and give me the following Error log:
C:\Users\Barry\AppData\Local\.meteor\packages\meteor-tool\1.3.2_4\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:245
throw(ex);
^
Error: A dynamic link library (DLL) initialization routine failed.
C:\Users\Barry\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7_1\npm\node_modules\bcrypt\build\Release\bcrypt_lib.node
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 bindings (C:\Users\Barry\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7_1\npm\node_modules\bindings\bindings.js:76:44)
at Object.<anonymous> (C:\Users\Barry\AppData\Local\.meteor\packages\npm-bcrypt\0.8.7_1\npm\node_modules\bcrypt\bcrypt.js:3:35)
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)
Exited with code: 8
Your application is crashing. Waiting for file change.
What is causing this error to occur and how can I solve it?
There have been 9 (recommended) releases to Meteor since the version that you're using, and a lot of issues have been resolved around using bcrypt specifically. Try updating your app to the latest version of Meteor (via meteor update), remove your applications node_modules directory, and run a new meteor npm install.
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.
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