Meteor doesn't install fibers in bundle - meteor

I created a bundle and try install as wrote in readme
> node ./build.js
module.js:340
throw err;
^
Error: Cannot find module '/root/bundle/programs/server/node_modules/fibers/build.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
npm ERR! fibers#1.0.1 install: `node ./build.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the fibers#1.0.1 install script.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./build.js
npm install -g fiders works as well

I'm not sure if this is the same problem, but starting with 0.9.0 you have to install fibers after unpacking the build. From the readme:
To prepare a bundle created with meteor bundle for execution on a server, you now run npm install with no arguments instead of having to specify a few specific npm modules and their versions explicitly. See the README in the generated bundle for more details.
I do something like this in my deployment script:
meteor bundle /path/to/target/bundle.tgz
cd /path/to/target/
rm -rf bundle
tar xzf bundle.tgz
cd bundle/programs/server && npm install

Related

How to install nvim-treesitter on Apple Silicon (M1 Max)? Getting error: Cannot install tree-sitter-cli for architecture arm64

I'm trying to set up nvim on my MBP, and everything went well except for the last step, which is installing nvim-treesitter, after a short installing routine it throws this error:
nvim-treesitter[phpdoc]: Error during `npm install` (required for parser generation of phpdoc with npm dependencies)
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm ERR! code 1
npm ERR! path /Users/anton/.local/share/nvim/tree-sitter-phpdoc/node_modules/tree-sitter-cli
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! /Users/anton/.local/share/nvim/tree-sitter-phpdoc/node_modules/tree-sitter-cli/install.js:24
npm ERR! throw new Error(`Cannot install tree-sitter-cli for architecture ${process.arch}`);
npm ERR! ^
npm ERR!
npm ERR! Error: Cannot install tree-sitter-cli for architecture arm64
npm ERR! at Object.<anonymous> (/Users/anton/.local/share/nvim/tree-sitter-phpdoc/node_modules/tree-sitter-cli/install.
js:24:9)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1105:14)
npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:981:32)
npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:822:12)
npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
npm ERR! at node:internal/main/run_main_module:17:47
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/anton/.npm/_logs/2022-07-07T19_21_36_165Z-debug-0.log
Did someone found a fix for that? Frankly, I'm not very deep into arch and compiller stuff, so I can assume I'm missing something on a surface.
It seems like phpdoc doesn't work on Apple Silicon.
You may ignore phpdoc parser to workaround if you're not using it:
ignore_install = { "phpdoc" },
Or use quick fix from github issue

Meteor fails to install on local machine

I tried installing the meteor executable file on my local machine. meteor --version turned up nothing on the command line. I then tried npm install meteor on powershell and got this:
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> npm install -g meteor
npm WARN deprecated mongodb#1.1.11: Please upgrade to 2.2.19 or higher
npm WARN deprecated node-uuid#1.3.3: Use uuid module instead
C:\Users\Owner\AppData\Roaming\npm\meteor -> C:\Users\Owner\AppData\Roaming\npm\node_modules\meteor\app\meteor\meteor.js
> bson#0.1.5 install C:\Users\Owner\AppData\Roaming\npm\node_modules\meteor\node_modules\bson
> node install.js || (exit 0)
================================================================================
= =
= Attempting to build bson c++ extension =
= Windows: no build will be attempted as binaries are prepackaged =
= Unix: on failure the package will still install without the C++ extension =
= =
================================================================================
> fibers#0.6.9 install C:\Users\Owner\AppData\Roaming\npm\node_modules\meteor\node_modules\fibers
> node ./build.js
(node:9716) DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.
events.js:160
throw er; // Unhandled 'error' event
^
Error: spawn node-gyp ENOENT
at exports._errnoException (util.js:1018:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:508:3
C:\Users\Owner\AppData\Roaming\npm
`-- (empty)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "ins
tall" "-g" "meteor"
npm ERR! node v6.10.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! fibers#0.6.9 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers#0.6.9 install script 'node ./build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs fibers
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls fibers
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\WINDOWS\system32\npm-debug.log
npm ERR! code 1
The same command on Git Bash turned the same result. How can this be resolved? I should note that I tried "run as administrator" for powershell and git bash.
On windows, install meteor using the meteor installer:
https://www.meteor.com/install

Cannot install atom package pandoc-convert in Manjaro

When I try to install the package pandoc-convert 1.1.0 on Atom 1.14.3 using the Manjaro LXqt OS 16.11 I get the following error:
Installing “pandoc-convert#1.1.0” failed.Hide output…
(node:9072) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
pandoc-bin#0.1.2 postinstall /tmp/apm-install-dir-117127-9072-634y30.v7yhbk2o6r/node_modules/pandoc-convert/node_modules/pandoc-bin
node index.js
⧗ Downloading Pandoc (~20-50MB depending on OS). This may take a minute or so.
/tmp/apm-install-dir-117127-9072-634y30.v7yhbk2o6r
└── (empty)
npm WARN deprecated win-spawn#2.0.0: use cross-spawn or cross-spawn-async instead.
npm WARN deprecated find-file#0.1.4: Use the globby package instead
path.js:7
throw new TypeError('Path must be a string. Received ' + inspect(path));
^
TypeError: Path must be a string. Received { url: 'https://raw.github.com/toshgoodson/pandoc-bin/0.1.0/vendor/linux/x64/pandoc',
name: 'pandoc',
os: 'linux',
arch: 'x64' }
at assertPath (path.js:7:11)
at Object.basename (path.js:1355:5)
at /tmp/apm-install-dir-117127-9072-634y30.v7yhbk2o6r/node_modules/pandoc-convert/node_modules/download/index.js:35:43
at each (/tmp/apm-install-dir-117127-9072-634y30.v7yhbk2o6r/node_modules/pandoc-convert/node_modules/each-async/each-async.js:63:4)
at module.exports (/tmp/apm-install-dir-117127-9072-634y30.v7yhbk2o6r/node_modules/pandoc-convert/node_modules/download/index.js:33:5)
at /tmp/apm-install-dir-117127-9072-634y30.v7yhbk2o6r/node_modules/pandoc-convert/node_modules/bin-wrapper/index.js:108:20
at /tmp/apm-install-dir-117127-9072-634y30.v7yhbk2o6r/node_modules/pandoc-convert/node_modules/bin-wrapper/index.js:141:24
at /tmp/apm-install-dir-117127-9072-634y30.v7yhbk2o6r/node_modules/pandoc-convert/node_modules/bin-check/index.js:30:20
at /tmp/apm-install-dir-117127-9072-634y30.v7yhbk2o6r/node_modules/pandoc-convert/node_modules/executable/index.js:39:20
at FSReqWrap.oncomplete (fs.js:114:15)
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-117127-9072-634y30.v7yhbk2o6r/package.json'
npm WARN apm-install-dir-117127-9072-634y30.v7yhbk2o6r No description
npm WARN apm-install-dir-117127-9072-634y30.v7yhbk2o6r No repository field.
npm WARN apm-install-dir-117127-9072-634y30.v7yhbk2o6r No README data
npm WARN apm-install-dir-117127-9072-634y30.v7yhbk2o6r No license field.
npm ERR! Linux 4.8.5-2-MANJARO
npm ERR! argv "/usr/bin/node" "/usr/lib/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/martinezce/.atom/.apm/.apmrc" "--userconfig" "/home/martinezce/.atom/.apmrc" "install" "/tmp/d-117127-9072-m6rmws.6kl2mg3nmi/package.tgz" "--runtime=electron" "--target=1.4.15" "--arch=x64" "--global-style"
npm ERR! node v7.6.0
npm ERR! npm v4.3.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pandoc-bin#0.1.2 postinstall: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pandoc-bin#0.1.2 postinstall script 'node index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pandoc-bin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs pandoc-bin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls pandoc-bin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/martinezce/.atom/.apm/_logs/2017-02-27T13_55_01_959Z-debug.log
I can install it on a Windows machine fine, but on Manjaro it doesn't work.
Maybe, it's a package issue?
Thank you for your help.
Best Regards,
Cédric Martinez

grunt-cli installation issue

I installed grunt-cli both locally and globally and I can see the same in both local and global paths.
To test if the installation works, when I tried to run
grunt -h
it shows following
>> Local Npm module "grunt-cli" not found. Is it installed?
Grunt: The JavaScript Task Runner (v0.4.5)
Usage
grunt [options] [task [task ...]]
Options
--help, -h Display this help text.
--base Specify .......
When I run grunt -v, following is part of its output
Registering "grunt-cli" local Npm module tasks.
Reading /Users/cominventor/myproject/node_modules/grunt-cli/package.json...OK
Parsing /Users/cominventor/myproject/node_modules/grunt-cli/package.json...OK
>> Local Npm module "grunt-cli" not found. Is it installed?
To install locally, I ran the following command (suggested by #Aruna)
npm install grunt --save-dev
npm install grunt-cli --save-dev
and got the following output for the second command
npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "grunt-cli" "--save-dev"
npm ERR! node v6.6.0
npm ERR! npm v3.10.7
npm ERR! code ENOSELF
npm ERR! Refusing to install grunt-cli as a dependency of itself
npm ERR!
Any clues what am I missing here?
How did you install the grunt?
Have you tried both global and local modules as below,
Global
npm install -g grunt-cli
Local
npm install grunt --save-dev
npm install grunt-cli --save-dev

Meteor mup deploy fibers error

i get the following error when i try to mup deploy
Building Started: /Users/../.......
Started TaskList: Deploy app 'meteor' (linux)
[195.30.108.227] - Uploading bundle
[195.30.108.227] - Uploading bundle: SUCCESS
[195.30.108.227] - Setting up Environment Variables
[195.30.108.227] - Setting up Environment Variables: SUCCESS
[195.30.108.227] - Invoking deployment process
[195.30.108.227] x Invoking deployment process: FAILED
-----------------------------------STDERR-----------------------------------
les/fibers
gyp ERR! node -v v4.4.7
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
Build failed
npm ERR! Linux 3.13.0-32-generic
npm ERR! argv "/opt/nodejs/bin/node" "/usr/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm v2.15.8
npm ERR! code ELIFECYCLE
npm ERR! fibers#1.0.5 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers#1.0.5 install script 'node ./build.js'.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs fibers
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls fibers
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /opt/meteor/tmp/bundle/programs/server/npm-debug.log
-----------------------------------STDOUT-----------------------------------
> ./bcrypt: npm install due to binary npm modules
bindings#1.0.0 node_modules/bindings
nodeunit#0.9.1 node_modules/nodeunit
└── tap#0.7.1 (inherits#2.0.1, buffer-equal#0.0.2, slide#1.1.6, deep-equal#1.0.1, yamlish#0.0.7, nopt#3.0.6, mkdirp#0.5.1, difflet#0.2.6, glob#4.5.3, runforcover#0.0.2)
> fibers#1.0.5 install /opt/meteor/tmp/bundle/programs/server/node_modules/fibers
> node ./build.js
make: Verzeichnis »/opt/meteor/tmp/bundle/programs/server/node_modules/fibers/build« wird betreten
CXX(target) Release/obj.target/fibers/src/fibers.o
make: Verzeichnis »/opt/meteor/tmp/bundle/programs/server/node_modules/fibers/build« wird verlassen
----------------------------------------------------------------------------
You are using node version v4.4.7, but meteor build run on v0.10.40 or lower.
You can use nvm for change your node version.
Had similar problem.
The issue was related to meteor version and mup
As my meteor was 1.2.1 and my mup 1.3.1, needed to change in mup.js to use older docker "kariahq/meteord" image
docker: {
// change to 'kadirahq/meteord' if your app is not using Meteor 1.4
image: 'kadirahq/meteord'
//image: 'abernix/meteord:base'
},

Resources