"Error: not found: make" installing Meteorite on OS X - meteorite

I'm trying to install meteorite on OS X 10.8.4. When I run this
sudo -H npm install -g meteorite
I see
ws#0.4.27 install /usr/local/share/npm/lib/node_modules/meteorite/node_modules/ddp/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)
Looking at the builderror.log I see
gyp http GET http://nodejs.org/dist/v0.10.15/node-v0.10.15.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.15/node-v0.10.15.tar.gz
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/usr/local/Cellar/node/0.10.10/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/usr/local/Cellar/node/0.10.10/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /usr/local/Cellar/node/0.10.10/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Darwin 12.4.0
gyp ERR! command "node" "/usr/local/Cellar/node/0.10.10/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/share/npm/lib/node_modules/meteorite/node_modules/ddp/node_modules/ws
gyp ERR! node -v v0.10.15
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
What could be the problem?

Do you have the native build tools installed? If not, install them. This can be done using Xcode very easily. In the Xcode "Downloads" preference window.
Here's what appears to be your exact issue on another package: https://github.com/JustinTulloss/zeromq.node/issues/142

Assuming "install the command line tools" is the answer, in Xcode 5.1.1, xcode-select --install was not yet available. Here's how you do it in Xcode 5.1.1 (also works with older versions)
Applications
Xcode (Launch the IDE from your Apps)
Xcode Preferences menu (Top left, next to Apple logo)
Downloads tab
Components: Command Line Tools
Install (Download Arrow)

Related

Npm install produces error Could not find any Visual Studio installation to use, code --version produces vs code version, added it to path

Trying to run ionic, capacitor, react project after long time again on windows machine, before everything worked good, now first it asked me for python, so i installed it and added it to path, then it asks me for VS Code, I'm working in VS Code, added it as well to path, but still getting error "Could not find any Visual Studio installation to use", even though i run npm install comand from VS Code and also entering code --version gets me vs code version
PS C:\Dev\pianoNew\PianoTrainerNewPlayer\osmd-player-react-master> code --version
1.70.1
6d9b74a70ca9c7733b29f0456fd8195364076dda
x64
This is complete error messsage
PS C:\Dev\pianoNew\PianoTrainerNewPlayer\piano> npm install
npm WARN deprecated source-map-url#0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated #fortawesome/fontawesome#1.1.8: This package is deprecated. See https://git.io/fNCzJ for information about upgrading.
npm WARN deprecated formidable#1.2.6: Please upgrade to latest, formidable#v2 or formidable#v3! Check these notes: LINK REMOVED
npm WARN deprecated xmldom#0.1.19: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm WARN deprecated uuid#3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated superagent#4.1.0: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
npm WARN deprecated ionic#5.4.16: The Ionic CLI now uses ✨ #ionic/cli ✨ for its package name! 👉 https://twitter.com/ionicframework/status/1223268498362851330
npm WARN deprecated #fortawesome/fontawesome-free-brands#5.0.13: This package is deprecated. See https://git.io/fNCzJ for information about upgrading.
npm WARN deprecated #fortawesome/fontawesome-free-solid#5.0.13: This package is deprecated. See https://git.io/fNCzJ for information about upgrading.
npm ERR! code 1
npm ERR! path C:\Dev\pianoNew\PianoTrainerNewPlayer\piano\node_modules\cap
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#8.4.1
npm ERR! gyp info using node#16.14.2 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.6 found at "C:\Python106\python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14)
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:406:5)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:526:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
npm ERR! gyp ERR! System Windows_NT 10.0.19044
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Dev\pianoNew\PianoTrainerNewPlayer\piano\node_modules\cap
npm ERR! gyp ERR! node -v v16.14.2
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\eloi0\AppData\Local\npm-cache\_logs\2022-08-15T03_33_16_265Z-debug-0.log
PS C:\Dev\pianoNew\PianoTrainerNewPlayer\piano> code .
PS C:\Dev\pianoNew\PianoTrainerNewPlayer\piano> code --version
1.70.1
6d9b74a70ca9c7733b29f0456fd8195364076dda
x64
PS C:\Dev\pianoNew\PianoTrainerNewPlayer\piano>

Unable to install p5.serialserver on a mac

I have been trying to install p5.serial server on a mac for 2 days to no avail.
I have tried everything I can think of to try and download p5.serialserver on a mac. I used all three methods suggested in the documentation (https://github.com/p5-serial/p5.serialport) which were
clone the repository and run
npm install
This failed when I ran npm install and I was not able to proceed to the next step. Then I tried
sudo npm install -g p5.serialserver
and
npm install p5.serialserver
It keeps giving me errors that 3 arguments are required, but 2 were provided like below:
npm ERR! /path/path/path/node-gyp/17.4.0/include/node/v8-object.h:247:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
Then the following:
npm ERR! ^
npm ERR! 4 errors generated.
npm ERR! make: *** [Release/obj.target/bindings/src/serialport.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/path/path/path/.nvm/versions/node/v17.4.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 21.1.0
npm ERR! gyp ERR! command "/path/path/path/.nvm/versions/node/v17.4.0/bin/node" "/path/path/path/.nvm/versions/node/v17.4.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /path/path/path/.nvm/versions/node/v17.4.0/lib/node_modules/p5.serialserver/node_modules/#serialport/bindings
npm ERR! gyp ERR! node -v v17.4.0
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
I assume this is because there are updated required and some of the packages required have changed, but I'm not sure which packages or how to resolve this. I tried downgrading the version of node I was using, but that did not work. If anyone has any more suggestions please inform.
Update: I ran p5.serialserver at https://npm.runkit.com/p5.serialserver.
It gave more errors based on what is in the module. Does that mean that it is not possible to use? Errors linked here: https://runkit.com/embed/9rlymlps3vcx
I have finally figured this out after a professor sent resources to explain the error. Basically, you need to download to nodev12.20.2 in order to use p5 serial (probably because of outdated dependencies)
I did this by running the following in the terminal. You can use nvm to run different versions of node, so I suggest using it to install node if you didn't already:
nvm install 12.20.2
nvm use 12.20.2
node -v
Confirm that the terminal is running node v12.20.2
sudo npm install serialport --unsafe-perm -g
sudo npm install ws -g
sudo npm install p5.serialserver --unsafe-perm -g
Then just run the following to start the server:
p5serial
And it should start the server. Hope this helps someone else because this was driving me crazy.

Getting error when install ionic in linux mint

I have tried a lot. But getting the same error when i tried to install Ionic.
I have tried this command
sudo ionic start lottery-app tabs --type=angular
And getting this error. Even i tried with Sudo. But still getting the same permission issue.
gyp verb build dir attempting to create "build" dir: /var/www/html/ionic/lottery-app/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/var/www/html/ionic/lottery-app/node_modules/node-sass/build'
gyp ERR! System Linux 4.8.0-53-generic
gyp ERR! command "/usr/local/bin/node" "/var/www/html/ionic/lottery-app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /var/www/html/ionic/lottery-app/node_modules/node-sass
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
and after that how can i run this like mobile App by Android SDK.Please help me i am totally new in it. thanks in advance.
i was also getting many error while install it in ubuntu
try this script i found online on github this install ionic perfectly
click here

Not able to install fabric.js on Mac OS

I am not able to install fabric js on mac os. Currently working on ionic project. Below is my project configuration
1. Ionic -v3
2. Angular - v6
3. Cordova
I ran below command on terminal
npm i fabric
But I got below error
Mobiles-MacBook-Pro:lib mobilesolution$ npm i fabric
> canvas#1.6.11 install /usr/local/lib/node_modules/fabric/node_modules/canvas
> node-gyp rebuild
./util/has_lib.sh: line 31: pkg-config: command not found
gyp: Call to './util/has_lib.sh freetype' returned exit status 0 while in 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:345:16)
gyp ERR! stack at ChildProcess.emit (events.js:160:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/9.4.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/fabric/node_modules/canvas
gyp ERR! node -v v9.4.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas#1.6.11 (node_modules/fabric/node_modules/canvas):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: canvas#1.6.11 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
+ fabric#2.3.3
added 82 packages from 192 contributors in 4.071s
I tried so many solutions but nothing is working. Even i tried to update the os version. Even though I found same issue.I tried below commands
cd /usr/local/lib sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.5.dylib
sudo apt-get install build-essential
received error as apt-get not defined
apt-get remove gyp
xcode-select --install
sudo xcode-select --switch
node-gyp configure
sudo xcode-select -s /Library/Developer/CommandLineTools
softwareupdate --install -a
I got the solution. I forgot to install cairo..
I followed this link to get the answer. Now its working fine. Able to install fabric.js
I ran below command..
brew install cairo
brew install pkg-config

Errors installing Karma on Mac OS 10.8.5

When I run npm install karma --save-dev, most of the installation goes well, but I get the following errors:
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
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 12.6.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Volumes/myProject/node_modules/karma/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
> bufferutil#1.1.0 install /Volumes/myProject/node_modules/karma/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild
child_process: customFds option is deprecated, use stdio instead.
Error: Can't run /Applications/Xcode.app/usr/bin/xcodebuild (no such file).
Error: Can't run /Applications/Xcode.app/usr/bin/xcodebuild (no such file).
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
I have XCode Version 5.1.1 (5B1008) installed at /Applications/Xcode.app/, but when I Show Contents on the file, it shows a folder named Contents, and no usr directory.
What suggestions can you give to get gyp to install?