Meteor fails to install on local machine - meteor

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

Related

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

node-gyp rebuild error windows 10

Why installing term3 on atom (Windows 10, Visual Studio 2015) I get the following error. I tried all the solution available on the internet but can't help the issue. Can someone help me fix this?
C:\Users\JoyLal>apm install term3
Installing term3 to C:\Users\JoyLal\.atom\packages failed
> ptyw.js#0.4.1 install C:\Users\JoyLal\AppData\Local\Temp\apm-install-dir-1161015-1108-j516r8\node_modules\term3\node_modules\ptyw.js
> node-gyp rebuild
C:\Users\JoyLal\AppData\Local\Temp\apm-install-dir-1161015-1108-j516r8\node_modules\term3\node_modules\ptyw.js>if not defined npm_config_node_gyp (node "C:\Users\JoyLal\AppData\Local\atom\app-
1.12.2\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\JoyLal\AppData\Local\atom\app-1.12.2\resources\app\apm\
bin\\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140\Toolset.targets(34,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the requir
ed version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\JoyLal\AppData\Local\Temp\apm-i
nstall-dir-1161015-1108-j516r8\node_modules\term3\node_modules\ptyw.js\build\vendor\winpty\winpty-agent.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140\Toolset.targets(34,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the requir
ed version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Users\JoyLal\AppData\Local\Temp\apm-i
nstall-dir-1161015-1108-j516r8\node_modules\term3\node_modules\ptyw.js\build\vendor\winpty\winpty.vcxproj]
C:\Users\JoyLal\AppData\Local\Temp\apm-install-dir-1161015-1108-j516r8
`-- (empty)
npm WARN deprecated react-tools#0.11.2: react-tools is deprecated. For more information,
npm ERR! registry error parsing json
npm WARN deprecated graceful-fs#2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs#^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to fi
nd it in the tree.
npm WARN deprecated minimatch#0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\JoyLal\AppData\Local\atom\app-1.12.2\resources\app\apm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Users\\JoyLal\\AppData\\Local\\atom\\app-1.12.2\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\JoyLal\\AppData\\Local\\atom\\app-1.12.2\\resources\\app\\apm\\node_modul
es\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\JoyLal\AppData\Local\Temp\apm-install-dir-1161015-1108-j516r8\node_modules\term3\node_modules\ptyw.js
gyp ERR! node -v v4.4.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\JoyLal\AppData\Local\Temp\apm-install-dir-1161015-1108-j516r8\package.json'
npm WARN apm-install-dir-1161015-1108-j516r8 No description
npm WARN apm-install-dir-1161015-1108-j516r8 No repository field.
npm WARN apm-install-dir-1161015-1108-j516r8 No README data
npm WARN apm-install-dir-1161015-1108-j516r8 No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Users\\JoyLal\\AppData\\Local\\atom\\app-1.12.2\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\JoyLal\\AppData\\Local\\atom\\app-1.12.2\\resources\\app\\apm\\node_modules\
\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\JoyLal\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\JoyLal\\.atom\\.apmrc" "install" "C:\\Users\\JoyLal\\AppData\\Local\\Temp\\d-1161015
-1108-dbjp4i\\package.tgz" "--runtime=electron" "--target=1.3.6" "--arch=ia32" "--global-style" "--msvs_version=2015"
npm ERR! node v4.4.5
npm ERR! npm v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! ptyw.js#0.4.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ptyw.js#0.4.1 install script 'node-gyp rebuild'.
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 ptyw.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ptyw.js
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ptyw.js
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\JoyLal\AppData\Local\Temp\apm-install-dir-1161015-1108-j516r8\npm-debug.log
npm ERR! code 1
I already have visual studio installed npm msvs_version is set to 2015 and python 2.7.3 installed on my PC.
Here is the error message by your logs:
The Windows SDK version 8.1 was not found.
So the Workaround is to:
Install Visual C++ projects support to Visual Studio 2015 (requires 3GB space).
Credits.

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'
},

node-pre-gyp install --fallback-to-build error install with npm on OSX

Running on OSX, node version 0.12.0, running
npm install --production
for Ghost trying to install sqlite3 v. 3.0.4 I get the following error:
> node-pre-gyp install --fallback-to-build
child_process: customFds option is deprecated, use stdio instead. gyp: /Users/USER/.node/common.gypi not found (cwd:
/Users/USER/Documents/personal_website/ghost/node_modules/sqlite3) while reading includes of binding.gyp while trying to load binding.gyp gyp
ERR! configure error gyp
ERR! stack Error: `gyp` failed with exit code: 1 gyp
ERR! stack at ChildProcess.onCpExit
(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at
Process.ChildProcess._handle.onexit (child_process.js:1067:12) gyp
ERR! System Darwin 14.1.0 gyp ERR! command "node"
"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=sqlite3" "--configuration=Release" "--module_name=node_sqlite3" "--version=3.0.4" "--major=3" "--patch=4" "--runtime=node" "--node_abi=node-v14" "--platform=darwin" "--target_platform=darwin" "--arch=x64" "--target_arch=x64" "--module_main=./lib/sqlite3" "--host=https://mapbox-node-binary.s3.amazonaws.com/" "--module_path=/Users/USER/Documents/personal_website/ghost/node_modules/sqlite3/lib/binding/node-v14-darwin-x64" "--module=/Users/USER/Documents/personal_website/ghost/node_modules/sqlite3/lib/binding/node-v14-darwin-x64/node_sqlite3.node" "--remote_path=./sqlite3/v3.0.4/" "--package_name=node-v14-darwin-x64.tar.gz" "--staged_tarball=build/stage/sqlite3/v3.0.4/node-v14-darwin-x64.tar.gz" "--hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/" "--hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/node-v14-darwin-x64.tar.gz" "--nodedir=/Users/USER/.node" gyp
ERR! cwd /Users/USER/Documents/personal_website/ghost/node_modules/sqlite3 gyp
ERR! node -v v0.12.0 gyp ERR! node-gyp -v v1.0.2 gyp ERR! not ok
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--production"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! sqlite3#3.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3#3.0.4 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
I do have /usr/local/share/npm/bin in my PATH.
When trying to install ghost I also get this error. It looks like something is wrong with node-sqlite3, as I've seen other people posting about this error. Once node-sqlite3 is fixed there may be more issues though:
Ghost doesn't currently support node 0.12.x yet. From the README.md:
Ghost requires Node v0.10.x
There is more info at https://github.com/TryGhost/Ghost/issues/4240
I'll probably just end up installing an older version of node until ghost has a new release.
npm i sqlite3 --build-from-source may work
I got that error too. After downgrade nodejs to 0.10.9 with npm version 2.5.1 I can do npm install --production without error
If you download Ghost directly from the github repo a lot of these issues that arise due to the package.json file are already resolved.
For instance, you have these notable changes that solve some install issues:
"engines": {
"node": "~0.10.0 || ~0.12.0",
"iojs": "~1.2.0"
},
And also in dependencies:
"html-to-text": "1.2.0",
"sqlite3": "3.0.5",
Console appeared like this:
node pre gyp install --fallback-to-build
This is installed into a 32 bit version.
Waiting for a while, it automatically becomes 64 bit.
And just fine.

Meteor up mup deploy fails

EDIT:
Opened issue in Github repo.
https://github.com/arunoda/meteor-up/issues/87
I have tried to setup Meteor up to run a meteor app.
Here is the error I get when I run mup deploy
Invoking deployment process: FAILED
-----------------------------------STDERR-----------------------------------
e-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/give/tmp/bundle/programs/server/node_modules/bcrypt
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
npm ERR! bcrypt#0.7.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt#0.7.8 install script.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "bcrypt"
npm ERR! cwd /opt/give/tmp/bundle/programs/server
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /opt/give/tmp/bundle/programs/server/npm-debug.log
npm ERR! not ok code 0
-----------------------------------STDOUT-----------------------------------
> fibers#1.0.1 install /opt/give/tmp/bundle/programs/server/node_modules/fibers
> node ./build.js
`linux-x64-v8-3.14` exists; testing
Binary is fine; exiting
fibers#1.0.1 node_modules/fibers
> bcrypt#0.7.8 install /opt/give/tmp/bundle/programs/server/node_modules/bcrypt
> node-gyp rebuild
----------------------------------------------------------------------------
I also ran a mup logs -n 300 and got this response.
error: Cannot start forever
error: script /opt/give/app/main.js does not exist.
Any idea what I might be doing wrong here?
I restored my server to an earlier state, reinstalled mup and set the install nodejs to false. I also installed node v0.10.29 using sudo npm install n -g sudo n stable and ran through mup init, mup setup, mup deploy works this time.

Resources