Npm install pomelo errors VC++ 2010? - c++

I tried to run
npm install pomelo -g
I got this:
...
npm http 304 https://registry.npmjs.org/pomelo-schedule/0.3.4
npm http 304 https://registry.npmjs.org/pomelo-logger/0.1.2
npm http 304 https://registry.npmjs.org/ws/0.4.25
npm http 304 https://registry.npmjs.org/node-bignumber/1.2.1
npm http 304 https://registry.npmjs.org/pomelo-protobuf/0.4.0
npm http 304 https://registry.npmjs.org/cliff/0.1.8
npm http 304 https://registry.npmjs.org/commander/2.0.0
npm http GET https://registry.npmjs.org/log4js/0.6.7
npm http GET https://registry.npmjs.org/log4js
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http GET https://registry.npmjs.org/socket.io-client/0.9.16
npm http GET https://registry.npmjs.org/ndump
npm http 304 https://registry.npmjs.org/log4js/0.6.7
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/winston
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/base64id/0.1.0
npm http GET https://registry.npmjs.org/redis/0.7.3
npm http 304 https://registry.npmjs.org/log4js
npm http GET https://registry.npmjs.org/pomelo-loader/0.0.5
npm http GET https://registry.npmjs.org/stream-pkg/0.0.5
npm http GET https://registry.npmjs.org/node-uuid/1.4.0
npm http 304 https://registry.npmjs.org/bindings/1.0.0
> toobusy#0.2.2 install C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\toobusy
> node-gyp rebuild
C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\toobusy>node "D:\Logiciels installés\nodejs\node_modules
\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:980:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:771:34)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\toobusy
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/ndump
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.16
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/winston
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/policyfile/0.0.4
npm http 304 https://registry.npmjs.org/base64id/0.1.0
npm http 304 https://registry.npmjs.org/redis/0.7.3
npm http 304 https://registry.npmjs.org/pomelo-loader/0.0.5
npm http 304 https://registry.npmjs.org/stream-pkg/0.0.5
> ndump#0.0.2 install C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\ndump
> node-gyp rebuild
C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\ndump>node "D:\Logiciels insta
llés\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:980:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:771:34)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\ndump
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/node-uuid/1.4.0
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/options
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\re
dis\diff_multi_bench_output.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\redis\diff_multi_be
nch_output.js
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\redis\diff_
multi_bench_output.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! EEXIST, mkdir 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\stream-p
kg'
File exists: C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\stream-pkg
Move it away, and try again.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\stream-pkg
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\stream-pkg
\.npmignore
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:171:23
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\mkdirp\index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-schedule\node_modu
les\log4js\test\categoryFilter-test.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-schedule\node_modules\log4js\test\c
ategoryFilter-test.js
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-schedule\node_modules\log4j
s\test\categoryFilter-test.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\cliff\node_modules\winsto
n\lib\winston\common.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\cliff\node_modules\winston\lib\winston\com
mon.js
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\cliff\node_modules\winston\lib\win
ston\common.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chmod 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\p
omelo-loader\README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\pomelo-loader\READ
ME.md
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\pomelo-loa
der\README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: EPERM, unlink 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket
.io\node_modules\policyfile\doc\index.html'
npm ERR! error rolling back pomelo#0.8.1 { [Error: EPERM, unlink 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\no
de_modules\socket.io\node_modules\policyfile\doc\index.html']
npm ERR! error rolling back errno: 50,
npm ERR! error rolling back code: 'EPERM',
npm ERR! error rolling back path: 'C:\\Users\\Vadorequest\\AppData\\Roaming\\npm\\node_modules\\pomelo\\node_modules\\socket.io\
\node_modules\\policyfile\\doc\\index.html' }
npm ERR! toobusy#0.2.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the toobusy#0.2.2 install script.
npm ERR! This is most likely a problem with the toobusy 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 toobusy
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\po
licyfile\doc\index.html'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\policyfile\doc\inde
x.html
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\socket.io\node_modules\policyfile\
doc\index.html
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules
\socket.io-client\components\learnboost-engine.io-client\lib\transports\polling-jsonp.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\socket.io-client
\components\learnboost-engine.io-client\lib\transports\polling-jsonp.js
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-admin\node_modules\socket.i
o-client\components\learnboost-engine.io-client\lib\transports\polling-jsonp.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-logger\node_module
s\log4js\.bob\instrumented\test\dateFileAppender-test.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-logger\node_modules\log4js\.bob\ins
trumented\test\dateFileAppender-test.js
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-logger\node_modules\log4js\
.bob\instrumented\test\dateFileAppender-test.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\n
ode-uuid\uuid.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "D:\\Logiciels installés\\nodejs\\\\node.exe" "D:\\Logiciels installés\\nodejs\\node_modules\\npm\\bin\\npm-cli.j
s" "install" "pomelo" "-g"
npm ERR! cwd C:\Users\Vadorequest
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\node-uuid\uuid.js
npm ERR! fstream_path C:\Users\Vadorequest\AppData\Roaming\npm\node_modules\pomelo\node_modules\pomelo-rpc\node_modules\node-uuid\
uuid.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack D:\Logiciels installés\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
My computer is new and I thing it's because of C++ redistibuable but I just installed VC++ 2010 redistribuable and reboot my computer. Any idea? Thx.

Use:
PYTHONPATH=C:\Python
PYTHON=%PYTHONPATH%\python.exe
Instead of
PYTHON=C:\Python\python.exe
Will fix Python.
I also installed Visual Studio 2012 Pro (but express 2010 should work too)
VC++ fixed.
Pomelo installed correctly then.
Thx for help!

it worked for me to remove the folder C:\Users\YourName\.node-gyp and of course this is for windows only.

Make sure you have all the required software to run node-gyp:
https://github.com/TooTallNate/node-gyp
You can configure version of Visual Studio used by gyp via an environment variable>
Examples:
set GYP_MSVS_VERSION=2012 for Visual Studio 2012
set GYP_MSVS_VERSION=2013e (the 'e' stands for 'express edition')
For the full list see
- https://github.com/joyent/node/blob/v0.10.29/tools/gyp/pylib/gyp/MSVSVersion.py#L209-294
This is still painful for Windows users of NodeJS as it assumes you have a copy of Visual Studio installed and many end users will never have this. So I'm lobbying Joyent to the encourage them to include web sockets as part of CORE node and also to possible ship a GNU gcc compiler as part of NodeJS install so we can permanently fix this problem.
Feel free to add your vote at:
https://github.com/joyent/node/issues/8005#issuecomment-50545326

You don't need to install Pomelo in Windows; I tried but I failed. Another solution is clone the folder (lib) that Pomelo was installed in in Ubuntu, and paste it to the node_modules folder of your project, as shown here:
And now you can clone Pomelo sample projects to try it. I had success with this solution.
Here is Pomelo that was compiled from the Ubuntu that I used:
Pomelo folder compiled on Ubuntu

Related

Error While Trying To Install Ganache CLI

Im getting these errors when trying to install ganache globally on my windows 10, please help
C:\Program Files\nodejs\node_modules\ganache\node_modules\leveldown
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#7.1.2
npm ERR! gyp info using node#16.14.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.9.6 found at "C:\Users\lenovo\AppData\Local\Programs\Python\Python39\python.exe"
npm ERR! gyp ERR! UNCAUGHT EXCEPTION
npm ERR! gyp ERR! stack Error: Cannot find module 'psl'
npm ERR! gyp ERR! stack Require stack:
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\tough-cookie\lib\pubsuffix-psl.js
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\tough-cookie\lib\cookie.js
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\request\lib\cookies.js
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\request\index.js
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\install.js
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\node-gyp.js
npm ERR! gyp ERR! stack - C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js
npm ERR! gyp ERR! stack at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
npm ERR! gyp ERR! stack at Function.Module._load (node:internal/modules/cjs/loader:778:27)
npm ERR! gyp ERR! stack at Module.require (node:internal/modules/cjs/loader:1005:19)
npm ERR! gyp ERR! stack at require (node:internal/modules/cjs/helpers:102:18)
npm ERR! gyp ERR! stack at Object.<anonymous> (C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\node_modules\request\node_modules\tough-cookie\lib\pubsuffix-psl.js:32:11)
npm ERR! gyp ERR! stack at Module._compile (node:internal/modules/cjs/loader:1103:14)
npm ERR! gyp ERR! stack at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
npm ERR! gyp ERR! stack at Module.load (node:internal/modules/cjs/loader:981:32)
npm ERR! gyp ERR! stack at Function.Module._load (node:internal/modules/cjs/loader:822:12)
npm ERR! gyp ERR! stack at Module.require (node:internal/modules/cjs/loader:1005:19)
npm ERR! gyp ERR! System Windows_NT 10.0.18363
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\lenovo\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Program Files\nodejs\node_modules\ganache\node_modules\leveldown
npm ERR! gyp ERR! node -v v16.14.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! Node-gyp failed to build your package.
npm ERR! gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lenovo\AppData\Local\npm-cache\_logs\2022-03-10T10_32_11_739Z-debug.log
Try creating a virtualenv then install ganache cli, the errors seems to be with npm not recognizing ganache to link with the python on your system.
mkdir (project_name)
change into dir
run python3 -m venv <name-of-env>
then, reinstall ganache cli.

CentOS 7 Cannot Find Module 'parse-server'

I've been trying these days to run a local parse server in VirtualBox (with CentOS 7, red-had_x64) with the parse-server-example repository. The problem is that this error appears always when I do sudo npm start.
> parse-server-example#1.4.0 start /root/Documentos/github/parse-server-example
> node index.js
module.js:478
throw err;
^
Error: Cannot find module 'parse-server'
at Function.Module._resolveFilename (module.js:476:15)
at Function.Module._load (module.js:424:25)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/root/Documentos/github/parse-server-example/index.js:5:44)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
npm ERR! Linux 3.10.0-1160.36.2.el7.x86_64
npm ERR! argv "/usr/bin/node" "/bin/npm" "start"
npm ERR! node v6.17.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! parse-server-example#1.4.0 start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the parse-server-example#1.4.0 start 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 parse-server-example 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 parse-server-example
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls parse-server-example
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/Documentos/github/parse-server-example/npm-debug.log
I also have been reading about this, and try the sudo npm install parse-server and also npm install parse-server and both of them give me this:
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 WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN deprecated querystring#0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated apollo-tracing#0.15.0: The `apollo-tracing` package is no longer part of Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#tracing for details
npm WARN deprecated apollo-cache-control#0.14.0: The functionality provided by the `apollo-cache-control` package is built in to `apollo-server-core` starting with Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#cachecontrol for details.
npm WARN deprecated graphql-extensions#0.15.0: The `graphql-extensions` API has been removed from Apollo Server 3. Use the plugin API instead: https://www.apollographql.com/docs/apollo-server/integrations/plugins/
npm WARN deprecated uuid#3.3.2: 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 request#2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated #parse/simple-mailgun-adapter#1.1.0: Package no longer supported. Use at your own risk. Find a list of supported e-mail adapters at https://github.com/parse-community/parse-server#email-verification-and-password-reset
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 axios#0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
npm WARN deprecated lsof#0.1.0: No longer maintained
npm WARN deprecated mkdirp#0.5.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated babel-eslint#10.1.0: babel-eslint is now #babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated graphql-tools#4.0.8: This package has been deprecated and now it only exports makeExecutableSchema.\nAnd it will no longer receive updates.\nWe recommend you to migrate to scoped packages such as #graphql-tools/schema, #graphql-tools/utils and etc.\nCheck out https://www.graphql-tools.com to learn what package you should use instead
npm notice
npm notice New minor version of npm available! 7.20.3 -> 7.21.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.21.0
npm notice Run npm install -g npm#7.21.0 to update!
npm notice
npm ERR! code 1
npm ERR! path /root/Documentos/github/parse-server-example/node_modules/kerberos
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
npm ERR! make: se ingresa al directorio `/root/Documentos/github/parse-server-example/node_modules/kerberos/build'
npm ERR! CXX(target) Release/obj.target/kerberos/src/kerberos.o
npm ERR! make: se sale del directorio `/root/Documentos/github/parse-server-example/node_modules/kerberos/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp#7.1.2
npm ERR! gyp info using node#16.7.0 | linux | x64
npm ERR! gyp info find Python using Python version 2.7.5 found at "/usr/bin/python"
npm ERR! gyp http GET https://nodejs.org/download/release/v16.7.0/node-v16.7.0-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.7.0/node-v16.7.0-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v16.7.0/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v16.7.0/SHASUMS256.txt
npm ERR! (node:3831) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /usr/bin/python
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/root/Documentos/github/parse-server-example/node_modules/kerberos/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/root/.cache/node-gyp/16.7.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/16.7.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/16.7.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/root/Documentos/github/parse-server-example/node_modules/kerberos',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! g++: error: unrecognized command line option ‘-std=gnu++14’
npm ERR! make: *** [Release/obj.target/kerberos/src/kerberos.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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 3.10.0-1160.36.2.el7.x86_64
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /root/Documentos/github/parse-server-example/node_modules/kerberos
npm ERR! gyp ERR! node -v v16.7.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-08-24T00_20_33_671Z-debug.log
The versions of my node.js when I put node -v
v16.7.0
And my mongoDB version with mongo -version is:
MongoDB shell version v4.4.8
Build Info: {
"version": "4.4.8",
"gitVersion": "83b8bb8b6b325d8d8d3dfd2ad9f744bdad7d6ca0",
"openSSLVersion": "OpenSSL 1.0.1e-fips 11 Feb 2013",
"modules": [],
"allocator": "tcmalloc",
"environment": {
"distmod": "rhel70",
"distarch": "x86_64",
"target_arch": "x86_64"
}
}

nodemon installation problem in nodejs using npm

npm ERR! file C:\WINDOWS\system32\cmd.exe;C:\Program
Files\Java\jdk1.8.0_161\bin;C:\Program Files\nodejs\node_modules\npm\bin;
npm ERR! path C:\WINDOWS\system32\cmd.exe;C:\Program Files\Java\jdk1.8.0_161\bin;C:\Program Files\nodejs\node_modules\npm\bin;
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn C:\WINDOWS\system32\cmd.exe;C:\Program Files\Java\jdk1.8.0_161\bin;
C:\Program Files\nodejs\node_modules\npm\bin;
npm ERR! nodemon#1.18.10 postinstall: node bin/postinstall || exit 0
npm ERR! spawn C:\WINDOWS\system32\cmd.exe;C:\Program Files\Java\jdk1.8.0_161\bin;C:\Program Files\nodejs\node_modules\npm\bin; ENOENT
npm ERR!
npm ERR! Failed at the nodemon#1.18.10 postinstall 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\gourav\AppData\Roaming\npm-cache_logs\2019-03-21T00_36_51_224Z-debug.log
first show us how you are installing it, and try run it as admin.

Node.JS installing CLD

I'm trying to install the CLD package in my notebook, but keep receiving error in compilation.
Some basic info about my installation:
OS: Win 7 Professional (64bit)
Visual Studio: 2012
Command used: npm install cld --msvs_version=2012
Node.JS version: 5.4.0
Virtual Memory on C drive and E drive are both between 4GB to 8GB.
With reference to MSVS's support site on error C1060, I have tried option 2 and 3 but no luck. Would anyone be able advise on this error? Detailed log is as below.
E:\node_modules\nan\nan.h(70): fatal error C1060: compiler is out of heap space (..\src\cld.cc) [E:\node_modules\cld\build\cld.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270: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 6.1.7601
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"
gyp ERR! cwd E:\node_modules\cld
gyp ERR! node -v v5.4.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN ENOENT ENOENT: no such file or directory, open 'E:\package.json'
npm WARN EPACKAGEJSON !invalid#1 No description
npm WARN EPACKAGEJSON !invalid#1 No repository field.
npm WARN EPACKAGEJSON !invalid#1 No README data
npm WARN EPACKAGEJSON !invalid#1 No license field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "cld" "--msvs_version=2012"
npm ERR! node v5.4.0
npm ERR! npm v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! cld#2.4.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cld#2.4.5 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 cld 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 cld
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! E:\npm-debug.log
try to install VS2013 Express Desktop version. Then re-install.
npm install cld --msvs_version=2013
reference: https://github.com/nodejs/node-gyp/blob/master/README.md#installation

Unable to install Ember.js

I am trying to install Ember CLI but I am getting error, I am not getting what exactly I need to do.
I am running the below command to install Ember CLI in my C drive:
npm install -g ember-cli
I am getting the below error:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ember-cli"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect
npm ERR! network connect ETIMEDOUT
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ember-cli"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! path C:\npm-debug.log.9900b075918cf81d21ff4fa7a56e3bc6
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! Error: EPERM, open 'C:\npm-debug.log.9900b075918cf81d21ff4fa7a56e3bc6'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM, open 'C:\npm-debug.log.9900b075918cf81d21ff4fa7a56e3bc6']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! path: 'C:\\npm-debug.log.9900b075918cf81d21ff4fa7a56e3bc6' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\npm-debug.log
UPDATED:
C:\>npm install -g ember-cli
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ember-cli"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect
npm ERR! network connect ETIMEDOUT
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
npm ERR! C:\npm-debug.log
I have solved the problem. It was mainly because of the network issues. I have enabled a proxy to be used by node for downloading the files.
This is happening because to install something globally with npm you have to be root or an administrator. In windowns right click on the terminal app and click the run as administrator option. On Mac and linux you would just put sudo before the command