Installing electron with jitsi-meet-electron repo - reactjs

I have downloaded the jitsi-meet-electron repo for building desktop app from https://github.com/jitsi/jitsi-meet-electron.git
Now, when I am trying to install electron using yarn, I am getting the below error.I think the problem is with the robotjs module.Also, for the python version - the logs shown is 'gyp info find Python using Python version 2.7.12 found at "/usr/bin/python" '
k#k-Lenovo-G50-70:~/17_2_21/jitsi-meet-electron$ yarn add electron
yarn add v1.22.10
warning ../package.json: No license field
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning electron-packager > electron-download > nugget > request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning electron-packager > asar > mksnapshot > request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning electron-packager > electron-download > nugget > request > har-validator#5.1.5: this library is no longer supported
warning electron-rebuild > node-gyp > request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning eslint > file-entry-cache > flat-cache > circular-json#0.3.3: CircularJSON is in maintenance only, flatted is its successor.
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/6] ⡀ robotjs
[-/6] ⡀ waiting...
[-/6] ⡀ waiting...
[-/6] ⡀ waiting...
error /home/k/17_2_21/jitsi-meet-electron/node_modules/robotjs: Command failed.
Exit code: 1
Command: prebuild-install || node-gyp rebuild
Arguments:
Directory: /home/k/17_2_21/jitsi-meet-electron/node_modules/robotjs
Output:
prebuild-install WARN install No prebuilt binaries found (target=14.15.4 runtime=node arch=x64 libc= platform=linux)
gyp info it worked if it ends with ok
gyp info using node-gyp#5.1.0
gyp info using node#14.15.4 | linux | x64
gyp info find Python using Python version 2.7.12 found at "/usr/bin/python"
gyp info spawn /usr/bin/python
gyp info spawn args [
gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/k/17_2_21/jitsi-meet-electron/node_modules/robotjs/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/k/.cache/node-gyp/14.15.4/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/k/.cache/node-gyp/14.15.4',
gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/k/.cache/node-gyp/14.15.4/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/k/17_2_21/jitsi-meet-electron/node_modules/robotjs',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/k/17_2_21/jitsi-meet-electron/node_modules/robotjs/build'
CXX(target) Release/obj.target/robotjs/src/robotjs.o
cc1plus: warning: command line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
In file included from ../src/keypress.h:6:0,
from ../src/robotjs.cc:7:
../src/keycode.h:112:23: fatal error: X11/Xutil.h: No such file or directory
compilation terminated.
robotjs.target.mk:130: recipe for target 'Release/obj.target/robotjs/src/robotjs.o' failed
make: Leaving directory '/home/k/17_2_21/jitsi-meet-electron/node_modules/robotjs/build'
make: *** [Release/obj.target/robotjs/src/robotjs.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 4.15.0-133-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/k/17_2_21/jitsi-meet-electron/node_modules/robotjs
I found a way out.Below are the steps:
k#k-Lenovo-G50-70:~/26_2_21/ti$ git clone https://github.com/jitsi/jitsi-meet-electron.git
k#k-Lenovo-G50-70:~/26_2_21/ti$ ls
jitsi-meet-electron
k#k-Lenovo-G50-70:~/26_2_21/ti$ cd jitsi-meet-electron
https://github.com/jitsi/jitsi-meet-electron-utils
NOTE: For Linux install libxtst-dev and libpng++-dev (sudo apt-get install libxtst-dev libpng++-dev). This dependancies are related to RobotJS which is a dependency of jitsi-meet-electron-utils. You can see the build instructions for RobotJS here
k#k-Lenovo-G50-70:~/26_2_21/ti/jitsi-meet-electron$ sudo apt-get install libxtst-dev libpng++-dev
k#k-Lenovo-G50-70:~/26_2_21/ti/jitsi-meet-electron$ npm install
Finally, for the desktop app to run,
k#k-Lenovo-G50-70:~/17_2_21/repos/a_21_2_21$ npm start
jitsi-meet-electron#2.4.2 start /home/k/17_2_21/repos/a_21_2_21
webpack --config ./webpack.main.js --mode development && concurrently "npm:watch" "electron ./build/main.js"

I found a way out.Below are the steps:
k#k-Lenovo-G50-70:~/26_2_21/ti$ git clone https://github.com/jitsi/jitsi-meet-electron.git
k#k-Lenovo-G50-70:~/26_2_21/ti$ ls
jitsi-meet-electron
k#k-Lenovo-G50-70:~/26_2_21/ti$ cd jitsi-meet-electron
Reference link for installing additional dependencies is:
https://github.com/jitsi/jitsi-meet-electron-utils
The link mentions the below packages to be installed.
NOTE: For Linux install libxtst-dev and libpng++-dev (sudo apt-get install libxtst-dev libpng++-dev). This dependancies are related to RobotJS which is a dependency of jitsi-meet-electron-utils. You can see the build instructions for RobotJS here
k#k-Lenovo-G50-70:~/26_2_21/ti/jitsi-meet-electron$ sudo apt-get install libxtst-dev libpng++-dev
k#k-Lenovo-G50-70:~/26_2_21/ti/jitsi-meet-electron$ npm install
Finally, for the desktop app to run,
k#k-Lenovo-G50-70:~/17_2_21/repos/a_21_2_21$ npm start
jitsi-meet-electron#2.4.2 start /home/k/17_2_21/repos/a_21_2_21 webpack --config ./webpack.main.js --mode development && concurrently "npm:watch" "electron ./build/main.js"

Related

Gatsby Develop : Something went wrong installing the "sharp" module

I just did a git clone off a starter template on Gatsby-- bumped into this error when I ran 'gatsby develop'. I've deleted the node module, as well as the sharp module in node module. To no avail.
Do let me know what's going on at this point! :-)
PS C:\Users\ipche\gatsby-strapi-starter> gatsby develop
success open and validate gatsby-configs - 0.073s
ERROR
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp.node'
Require stack:
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\lib\constructor.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\lib\index.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\safe-sharp.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\extend-node-type.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\gatsby-node.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby\dist\bootstrap\resolve-module-exports.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby\dist\bootstrap\load-plugins\validate.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby\dist\bootstrap\load-plugins\load.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby\dist\bootstrap\load-plugins\index.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby\dist\bootstrap\index.js
- C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby\dist\commands\develop-process.js
- C:\Users\ipche\gatsby-strapi-starter\.cache\tmp-19076-nq3SvOAJn7yo
- Remove the "node_modules/sharp" directory, run "npm install" and look for errors
- Consult the installation documentation at https://sharp.pixelplumbing.com/en/stable/install/
- Search for this error at https://github.com/lovell/sharp/issues
Ran 'npm build' here
C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\src\stats.cc(130,1): error C2661: 'v8::Object::Set': no overloa
ded function takes 2 arguments [C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\build\sharp.vcxproj]
C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\src\stats.cc(140,20): warning C4834: discarding return value of
function with 'nodiscard' attribute [C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\build\sharp.vcxproj]
C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\src\pipeline.cc(1017,20): warning C4834: discarding return valu
e of function with 'nodiscard' attribute [C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp\build\sharp.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\ipche\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ipche\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js"
"rebuild"
gyp ERR! cwd C:\Users\ipche\gatsby-strapi-starter\node_modules\gatsby-transformer-sharp\node_modules\sharp
gyp ERR! node -v v14.13.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp#0.22.1 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp#0.22.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ipche\AppData\Roaming\npm-cache\_logs\2020-10-06T21_03_57_721Z-debug.log
By the way, I went to package.json and changed the dependency version of sharp to 'sharp#0.22.1'. It was previously sharp#0.26.1!
Any leads?
EDIT
Ran ' npm install --verbose sharp'
1 Error(s)
Time Elapsed 00:00:11.67
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\ipche\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ipche\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js"
"rebuild"
gyp ERR! cwd C:\Users\ipche\gatsby-strapi-starter\node_modules\sharp
gyp ERR! node -v v14.13.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm verb lifecycle sharp#0.22.1~install: unsafe-perm in lifecycle true
npm verb lifecycle sharp#0.22.1~install: PATH: C:\Users\ipche\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\ipche\gatsby-strapi-starter\node_modules\sharp\node_modules\.bin;C:\Users\ipche\gatsby-strapi-starter\node_modules\.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Python38\Scripts\;C:\Python38\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\ipche\anaconda3;C:\Users\ipche\anaconda3\Library\mingw-w64\bin;C:\Users\ipche\anaconda3\Library\usr\bin;C:\Users\ipche\anaconda3\Library\bin;C:\Users\ipche\anaconda3\Scripts;C:\Users\ipche\AppData\Local\Microsoft\WindowsApps;C:\Users\ipche\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\ipche\AppData\Local\GitHubDesktop\bin;C:\Panda3D-1.10.6-x64\python;C:\Panda3D-1.10.6-x64\python\Scripts;C:\Panda3D-1.10.6-x64\bin;C:\Users\ipche\Documents\GitHub\feelDetection\Panda3D-1.10.6-x64\python;C:\Users\ipche\Documents\GitHub\feelDetection\Panda3D-1.10.6-x64\python\Scripts;C:\Users\ipche\Documents\GitHub\feelDetection\Panda3D-1.10.6-x64\bin;C:\Users\ipche\AppData\Roaming\npm
npm verb lifecycle sharp#0.22.1~install: CWD: C:\Users\ipche\gatsby-strapi-starter\node_modules\sharp
npm info lifecycle sharp#0.22.1~install: Failed to exec install script
npm timing action:install Completed in 15700ms
npm verb unlock done using C:\Users\ipche\AppData\Roaming\npm-cache\_locks\staging-4a5f00369a03df36.lock for C:\Users\ipche\gatsby-strapi-starter\node_modules\.staging
npm timing stage:rollbackFailedOptional Completed in 250ms
npm timing stage:runTopLevelLifecycles Completed in 39766ms
Delete the node_module folder first and then try out the below-given methods! This works for me
Update the version of the sharp package manually in the package.json file and then try to run the command npm i sharp
or first, install sharp package and then run the command npm install
In Windows, you may need extra dependencies to make the sharp module work. Try running:
npm install --global windows-build-tools --vs2015
Upon installing this package, it downloads and installs Visual C++ Build Tools 2015, provided free of charge by Microsoft. These tools are required to compile popular native modules. It will also install Python 2.7, configuring your machine, and npm appropriately.
Check Gatsby on Windows docs for further information.
On my Windows machine another possible solution is to update all the related gatsby plugins (for images).
I did it with yarn, of course, as suggested delete the node modules beforehand.
yarn upgrade-interactive --latest
Pick the onces you need, hope that solves the errors.
The problem could be anything but what worked for me was downgrading my nodejs version, specifically to 14.15.0 using nvm.
steps to follow :
Downgrade nodejs version.
Delete any package-lock.json or yarn-lock.json from the root folder.
Delete node_modules folder.
Delete .cache folder.
Run npm install or yarn install.
Hopefully, it will fix the issue, if it doesn't you can refer to the issues page of the library and more specifically on this issue

Problem installing packages with yarn on Ubuntu 18.04

I have a React website which was created on my computer. I wanted to add that in my server (Ubuntu 18.04) and I got a problem. When I launching yarn install command I get errors.
Node version: v12.13.0
Yarn version: v1.19.1
error /home/dev/my-react/newest-release/node_modules/ledgerco/node_modules/node-hid: Command failed.
Exit code: 1
Command: prebuild-install || node-gyp rebuild
Arguments:
Directory: /home/dev/my-react/newest-release/node_modules/ledgerco/node_modules/node-hid
Output:
prebuild-install WARN install No prebuilt binaries found (target=12.13.0 runtime=node arch=x64 platform=linux)
gyp info it worked if it ends with ok
gyp info using node-gyp#5.0.5
gyp info using node#12.13.0 | linux | x64
gyp info find Python using Python version 2.7.15 found at "/usr/bin/python"
gyp info spawn /usr/bin/python
gyp info spawn args [
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/dev/my-react/newest-release/node_modules/ledgerco/node_modules/node-hid/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.cache/node-gyp/12.13.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/12.13.0',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/12.13.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/dev/my-react/newest-release/node_modules/ledgerco/node_modules/node-hid',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
make: Entering directory '/home/dev/my-react/newest-release/node_modules/ledgerco/node_modules/node-hid/build'
CC(target) Release/obj.target/hidapi/hidapi/libusb/hid.o
hidapi.target.mk:111: recipe for target 'Release/obj.target/hidapi/hidapi/libusb/hid.o' failed
make: Leaving directory '/home/dev/my-react/newest-release/node_modules/ledgerco/node_modules/node-hid/build'
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
../hidapi/libusb/hid.c:47:10: fatal error: libusb.h: No such file or directory
#include <libusb.h>
^~~~~~~~~~
compilation terminated.
make: *** [Release/obj.target/hidapi/hidapi/libusb/hid.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:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.15.0-70-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/dev/my-react/newest-release/node_modules/ledgerco/node_modules/node-hid
according to the error you're missing libusb, please install it with
sudo apt install libusb-1.0-0-dev

install "atom-beautify#0.33.0" failed

I have installed the atom-beautify packages and I received this notify:
gyp info it worked if it ends with ok
gyp info using node-gyp#3.4.0
gyp info using node#6.9.5 | win32 | x64
gyp http GET https://atom.io/download/electron/v2.0.5/iojs-v2.0.5.tar.gz
gyp http 200 https://atom.io/download/electron/v2.0.5/iojs-v2.0.5.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! install error
gyp ERR! stack Error: read ECONNRESET
gyp ERR! stack at exports._errnoException (util.js:1022:11)
gyp ERR! stack at TLSWrap.onread (net.js:569:26)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Users\\Quy Nguyen\\AppData\\Local\\atom\\app-1.30.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Quy Nguyen\\AppData\\Local\\atom\\app-1.30.0\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "install" "--runtime=electron" "--target=2.0.5" "--dist-url=https://atom.io/download/electron" "--arch=x64" "--ensure"
gyp ERR! cwd C:\Users\Quy Nguyen\.atom
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
But sometimes I have different output like that:
npm WARN deprecated graceful-fs#2.0.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch#0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated #types/commander#2.12.2: This is a stub types definition for commander (https://github.com/tj/commander.js). commander provides its own type definitions, so you don't need #types/commander installed!
npm WARN deprecated jscs-preset-wikimedia#1.0.1: Deprecated in favour of eslint-config-wikimedia. -- https://phabricator.wikimedia.org/T118941
npm WARN deprecated nomnom#1.8.1: Package no longer supported. Contact support#npmjs.com for more info.
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\\Users\\Quy Nguyen\\AppData\\Local\\atom\\app-1.30.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Quy Nguyen\\AppData\\Local\\atom\\app-1.30.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Quy Nguyen\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Quy Nguyen\\.atom\\.apmrc" "install" "C:\\Users\\QUYNGU~1\\AppData\\Local\\Temp\\d-11882-10676-1pd8cj3.buptceg66r\\package.tgz" "--runtime=electron" "--target=2.0.5" "--arch=x64" "--global-style" "--msvs_version=2015"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code EREADFILE
npm ERR! Error extracting C:\Users\Quy Nguyen\.atom\.apm\marko\4.13.3\package.tgz archive: ENOENT: no such file or directory, open 'C:\Users\Quy Nguyen\.atom\.apm\marko\4.13.3\package.tgz'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\QUYNGU~1\AppData\Local\Temp\apm-install-dir-11882-10676-1ak13y1.o2hmklz0k9\npm-debug.log
I cannot understand how it works.
Thanks for your helps!
I am using windows 10 64 bit. I almost ripped my head of falling install atom-beautify. I was receiving "npm ERR! zlib: unexpected end of file". I tried everything. At last I reinstalled atom then deleted the .apm file and finally was able to install atom-beautify package. Hope this information help someone.
On Linux/Mac, the issue is solved by taking the following steps:
Open terminal (Ctrl+Alt+T)
cd /home/your_username/.atom/.apm/marko
ln -s 4.13.4 4.13.3
apm install atom-beautify
On Windows, you can use Git Bash and taking the above steps.
Or, on Windows taking the following steps:
Open cmd/powershell
cd C:\Users\your_username\.atom\.apm\marko
mklink /J 4.13.3 4.13.4
apm install atom-beautify
After deleting the .apm folder I was able to install the atom-beautify package.
Yes this Works!
For MAC/LINUX:
Open terminal
cd /home/your_username/.atom/.apm/marko
ln -s 4.13.4 4.13.3
apm install atom-beautify
For WINDOWS :
Open cmd/powershell
cd C:\Users\your_username\.atom\.apm\marko
mklink /J 4.13.3 4.13.4
apm install atom-beautify
Turning off the Windows firewall and antivirus worked for me.

Angular-cli failed to install properly

I wonder if you can help me.
I tried to install the angular-cli by the npm command
npm install -g angular-cli, however I got a lot of messages, and 'ng' command does not work.
Some of the errors I got are as following
> node-zopfli#1.4.0 install C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-zopfli
node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download: https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v48-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-zopfli#1.4.0 and node#6.5.0 (node-v48 ABI) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-gyp\lib\configure.js:449:14)
gyp ERR! stack at C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-gyp\lib\configure.js:404:11
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-zopfli\lib\binding\node-v48-win32-x64\zopfli.node" "--module_name=zopfli" "--module_path=C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-zopfli\lib\binding\node-v48-win32-x64"
gyp ERR! cwd C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-zopfli
gyp ERR! node -v v6.5.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-zopfli\lib\binding\node-v48-win32-x64\zopfli.node --module_name=zopfli --module_path=C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-zopfli\lib\binding\node-v48-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-zopfli
node-pre-gyp ERR! node -v v6.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.30
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-zopfli\lib\binding\node-v48-win32-x64\zopfli.node --module_name=zopfli --module_path=C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-zopfli\lib\binding\node-v48-win32-x64' (1)
npm WARN install:node-zopfli#1.4.0 node-zopfli#1.4.0 install: node-pre-gyp install --fallback-to-build
npm WARN install:node-zopfli#1.4.0 Exit status 1
node-sass#3.10.0 install C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass
node scripts/install.js
Start downloading binary at https://github.com/sass/node-sass/releases/download/v3.10.0/win32-x64-48_binding.node
Binary downloaded and installed at C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass\vendor\win32-x64-48\binding.node
node-sass#3.10.0 postinstall C:\Users\my name\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass
node scripts/build.js
Do I need to install anything other then node.js?
Im quite new to Angular, trying to do some tutorials and experiments
Thanks for your help and time
set environment variable PYTHON, with value of full path where python.exe is installed.
If its C:\Program Files\Python34\ then value will be C:\Program Files\Python34\python.exe
I am not on Windows but what you should consider doing first, run command line with administrative privileges. select the application on secondary menu (right click) select runs as admin.
Before that make sure you have installed the latest version of node.js. and the run the following commands.
npm uninstall -g angular/cli
npm cache clean
npm install -g angular/cli#latest
An update on this. I installed the new node.js V6.6.0, uninstalled the Angular-Cli, cleaned cache and re-installed the clie and it seems to have done the trick since I was able to install the Angular-CLI without problems this time, and ng new is working.

msnodesql module is getting error during compilation

C:\Python27>node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp#0.11.0
gyp info using node#0.10.21 | win32 | ia32
gyp info spawn python
gyp info spawn args [ 'C:\\Users\\v-javde\\AppData\\Roaming\\npm\\node_modules\\
node-gyp\\gyp\\gyp',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Python27\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\v-javde\\AppData\\Roaming\\npm\\node_modules\\
node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\v-javde\\.node-gyp\\0.10.21\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\v-javde\\.node-gyp\\0.10.21',
gyp info spawn args '-Dmodule_root_dir=C:\\Python27',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\Python27\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: C:\Python27) 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 (C:\Users\v-javde\AppData\Roaming\np
m\node_modules\node-gyp\lib\configure.js:467:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Users\\v-javde\\AppData\\Roaming\\npm\\node_modules
\\node-gyp\\bin\\node-gyp.js" "configure"
gyp ERR! cwd C:\Python27
gyp ERR! node -v v0.10.21
gyp ERR! node-gyp -v v0.11.0
gyp ERR! not ok
I have only two major requirements. 1. Azure SQL 2. NodeIIS, I have seen some tutorial online that works but when I tried it failed. I was thinking it might be due to the latest node.js version... i'm currently running v0.10.21, I have tried both 32 and 64 without success.
Is there anyone that has success of using this, what version of node.js you use?
You're running node-gyp configure in the wrong directory.
Find the root directory of the Node.js module, and execute the command there instead. You will know you're in the correct directory when there is a file named binding.gyp, because that is the file node-gyp is looking for.
Here's the bit from your own error that explains it:
gyp: binding.gyp not found (cwd: C:\Python27) while trying to load binding.gyp

Resources