Npm install fails on run-rs - node.js

I am trying to install run-rs (https://www.npmjs.com/package/run-rs) to test transactions in mongodb locally. However I get the following errors and I am not able to find anything that helps me solve them. Note that I am using an older version of node since the current LTS version caused some problems in an other project I am working on.
C:\WINDOWS\system32>npm i run-rs
(node:4504) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 drain listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
> kerberos#1.1.3 install C:\WINDOWS\system32\node_modules\kerberos
> prebuild-install || node-gyp rebuild
prebuild-install WARN install No prebuilt binaries found (target=12.9.0 runtime=node arch=x64 libc= platform=win32)
C:\WINDOWS\system32\node_modules\kerberos>if not defined npm_config_node_gyp (node "C:\Users\Workstation\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\Workstation\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
MSBUILD : error MSB1009: Die Projektdatei ist nicht vorhanden.
Schalter: build/binding.sln
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\Workstation\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:209:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Workstation\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\WINDOWS\system32\node_modules\kerberos
gyp ERR! node -v v12.9.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\WINDOWS\system32\package.json'
npm WARN system32 No description
npm WARN system32 No repository field.
npm WARN system32 No README data
npm WARN system32 No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! kerberos#1.1.3 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kerberos#1.1.3 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\Workstation\AppData\Roaming\npm-cache\_logs\2020-04-02T19_51_20_562Z-debug.log

sudo npm install -g run-rs --unsafe-perm=true --allow-root
try this command it's working for me.

Related

How to install keytar behind corporate registry?

I'm tryingto install keytar on my windows64 machine behind corporate registry.
But I got this error:
λ npm i keytar
> keytar#7.7.0 install C:\m\node_modules\keytar
> prebuild-install || npm run build
prebuild-install WARN install getaddrinfo EAI_AGAIN github.com
> keytar#7.7.0 build C:\m\node_modules\keytar
> node-gyp rebuild
C:\m\node_modules\keytar>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: getaddrinfo EAI_AGAIN nodejs.org
gyp ERR! stack at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
gyp ERR! System Windows_NT 10.0.17763
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 C:\m\node_modules\keytar
gyp ERR! node -v v14.17.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! keytar#7.7.0 build: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the keytar#7.7.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
Seems that keytar wants access to nodejs.org, but my organization doesn't allow me to do it.
The problem is I have some library (don't know which) that uses keytar as dependency and try to download and install.
Is there a way to make it work anyway?

Unable to npm install web3 on Windows 10

I followed every thing on this page:
https://medium.com/#PrateeshNanada/steps-to-install-testrpc-in-windows-10-96989a6cd594
Except step number 5 where my Node.js version is 8.10.0 instead of 8.10.2 which iI dont think is a big difference.
I have installed VS 2017 Community Edition, Windows 10 SDK, OpenSSL, npm-gyp.
I have run the command npm install --global --production windows-build-tools to install all the latest build tools and still get this error. Help is needed.
npm WARN deprecated fs-promise#2.0.3: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated tar.gz#1.0.7: WARNING tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
> scrypt#6.0.3 preinstall C:\Windows\System32\node_modules\scrypt
> node node-scrypt-preinstall.js
> scrypt#6.0.3 install C:\Windows\System32\node_modules\scrypt
> node-gyp rebuild
C:\Windows\System32\node_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Warning: Missing input files:
C:\Windows\System32\node_modules\scrypt\build\..\scrypt\win\include\config.h
MSBUILD : error MSB1009: Project file does not exist.
Switch: build/binding.sln
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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.16299
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 C:\Windows\System32\node_modules\scrypt
gyp ERR! node -v v8.10.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Windows\System32\package.json'
npm WARN System32 No description
npm WARN System32 No repository field.
npm WARN System32 No README data
npm WARN System32 No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt#6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt#6.0.3 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\Syed\AppData\Roaming\npm-cache\_logs\2018-03-11T17_47_58_702Z-debug.log
It appears to me that node-gyp rebuild is failing on my machine. Why is that?
Did you try running the command
npm install --global --production windows-build-tools
in powershell?
I had the same issue and running the command in powershell worked.

Installation of npm package scrypt failing

I have nodejs ,npm and node-gyp installed on my machine . Also I have installed windows-build-tools as a prerequisite for scrypt package. But when I do a npm install scrypt , I get the following error. How to resolve this?
The complete error message is:-
$ npm install scrypt --save
> scrypt#6.0.3 preinstall C:\Users\Benyah\node_modules\scrypt
> node node-scrypt-preinstall.js
> scrypt#6.0.3 install C:\Users\Benyah\node_modules\scrypt
> node-gyp rebuild
C:\Users\Benyah\node_modules\scrypt>if not defined npm_config_node_gyp (node "C\Users\Benyah\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\nde-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node C:\Users\Benyah\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\ode-gyp.js" rebuild )
Warning: Missing input files:
C:\Users\Benyah\node_modules\scrypt\build\..\scrypt\win\include\config.h
Building the projects in this solution one at a time. To enable parallel build,please add the "/m" switch.
Copying scrypt/win/include/config.h to scrypt/scrypt-1.2.0/config.h
The system cannot find the file specified.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targts(356,5): error MSB6006: "CL.exe" exited with code -1073741701. [C:\Users\Benyh\node_modules\scrypt\build\copied_files.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targts(356,5): error MSB6006: "CL.exe" exited with code -1073741701. [C:\Users\Benyh\node_modules\scrypt\build\scrypt_wrapper.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` faied with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Benyah\AppData\Roaming\npm\ode_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces.js:198:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Benyah\\AppDta\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" rebuild"
gyp ERR! cwd C:\Users\Benyah\node_modules\scrypt
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Benyah\packag.json'
npm WARN Benyah No description
npm WARN Benyah No repository field.
npm WARN Benyah No README data
npm WARN Benyah No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt#6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt#6.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional loging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Benyah\AppData\Roaming\npm-cache\_logs\2018-01-05T10_00_1_241Z-debug.log

Unable to install contextify on Windows

Here's what it returns when I try install contextify:
npm install contextify
npm WARN install Couldn't install optional dependency: Unsupported
npm WARN install Couldn't install optional dependency: Unsupported
> contextify#0.1.14 install F:\_vms\HomesteadCode\_live\misc\web-react\node_modules\contextify
> node-gyp rebuild
F:\_vms\HomesteadCode\_live\misc\web-react\node_modules\contextify>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
gyp: F:\Program Files (x86)\nodejs\common.gypi not found (cwd: F:\_vms\HomesteadCode\_live\misc\web-react\node_modules\contextify) 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 (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:357:16)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd F:\_vms\HomesteadCode\_live\misc\web-react\node_modules\contextify
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "contextify"
npm ERR! node v0.12.7
npm ERR! npm v3.3.1
npm ERR! code ELIFECYCLE
npm ERR! contextify#0.1.14 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify#0.1.14 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify 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 contextify
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! F:\_vms\HomesteadCode\_live\misc\web-react\npm-debug.log
UPDATE:
Got it installed... perhaps the hard way.
Installed Visual Studio 2013 (removed 2015)
Made sure I have latest nodejs
Cleaned up environment paths. (Checkout Rapidee)
Add a system variable: (mine: set VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120)
From my global node_modules (for me F:\Program Files\nodejs\node_modules\npm\node_modules) I cloned repo git clone git#github.com:brianmcd/contextify.git. CD into then rm -rf .git.
I had to next npm i nan
node-gyp rebuild
It installed without any more complaints!!!!
I hope that someone comes up with a better solution than this!!!
This is problem with python on windows ( https://github.com/nodejs/node-gyp/issues/629 )
There is probably not much you can do about this. You can try some workarounds, that they suggest in comments, but I do not know how much it'll help you.
Look at this link:
common.gypi not found error in node.js
Seems to be a common issue these days.
You can check https://github.com/TooTallNate/node-gyp/issues/313 and
https://github.com/TooTallNate/node-gyp/issues/376 to see if any of
these solutions solve your issue.
Particularly, you can:
Remove old dir ~/.node_gyp and run npm install
Copy an older version (ex: ~/.node-gyp/0.10.11/) to the complying path.
Copy the latest version to the complying path.
Chime in this thread to get help.
PS:
When I tried installing on Windows, I get a completely different error:
d:\temp>npm install -g contextify
> contextify#0.1.14 install C:\Users\paulsm\AppData\Roaming\npm\node_module\contextify
> node-gyp rebuild
C:\Users\paulsm\AppData\Roaming\npm\node_modules\contextify>node "D:\Program Files\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: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (D:\Program Files\nodejs\node_module\npm\node_modules\node-gyp\lib\configure.js:103:14)
<= NOTE: This is *not* your problem
When I ran sudo npm install -g contextify on a Linux box ... "everything worked".
Again - please review the links above, and see if they help.

Install popcorn maker developer on windows

I'm a pure nooby in this but I would really need to install popcorn maker developer to be able to modify it a bit and use it on a website as a webapp.
Here is the git hub link to it: popcorn webmaker
I tried to follow their guide but it does not seem to work I install node, and think I install make-valet, I think it worked but I'm not sure. But when I try to $npm install I get this error:
$ npm install
npm WARN engine sqlite3#2.1.17: wanted: {"node":">= 0.6.13 < 0.11.0"} (current: {"node":"0.12.0","npm":"2.5.1"})
npm WARN deprecated extend#1.1.3: Please update to the latest version.
npm WARN deprecated tap-consumer#0.0.1: this is merged into the 'tap' module now
npm WARN deprecated tap-results#0.0.2: this is merged into the 'tap' module now
> dtrace-provider#0.2.8 install C:\cygwin64\home\Me \popcorn.webmaker.org\node_modules\messina\node_modules\bunyan\node_modules\dtra ce-provider
> node-gyp rebuild
C:\cygwin64\home\Me\popcorn.webmaker.org\node_modules\messina\node_modules\bunyan\node_modules\dtrace-provider>node "C:\Program Files (x86)\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: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack at FSReqWrap.oncomplete (evalmachine.<anonymous>:99:15)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\cygwin64\home\Me\popcorn.webmaker.org\node_modules\messina\node_modules\bunyan\node_modules\dtrace-provider
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm WARN optional dep failed, continuing dtrace-provider#0.2.8
> sqlite3#2.1.17 install C:\cygwin64\home\Me\popcorn.webmaker.org\node_modules\sqlite3
> node build.js
[sqlite3]: Checking for http://node- sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.1.a-node-v14-win32-ia32.tar.gz
[sqlite3]: http://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.1.a-node-v14-win32-ia32.tar.gz not found, falling back to source compile (Error: Server returned 404)
C:\cygwin64\home\Me\popcorn.webmaker.org\node_modules\sqlite3>node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Build failed
[sqlite3]: 1
> node-expat#2.0.0 install C:\cygwin64\home\Me\popcorn.webmaker.org\node_modules\webmaker-download-locales\node_modules\xml2json\node_modules\node-expat
> node-gyp rebuild
C:\cygwin64\home\Mee\popcorn.webmaker.org\node_modules\webmaker-download-locales\node_modules\xml2json\node_modules\node-expat>node "C:\Program Files (x86)\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: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:64:11
gyp ERR! stack at FSReqWrap.oncomplete (evalmachine.<anonymous>:99:15)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\cygwin64\home\Me\popcorn.webmaker.org\node_modules\webmaker-download-locales\node_modules\xml2json\node_modules\node-expat
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm WARN optional dep failed, continuing sqlite3#2.1.17
npm WARN deprecated lingo#0.0.5: This project is abandoned
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! node-expat#2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-expat#2.0.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-expat 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 node-expat
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\cygwin64\home\Me\popcorn.webmaker.org\npm-debug.log
I really don't understand where the error is coming from. I installed node using the .exe file and when I $ node -v I get the 0.12.1 so it has worked but I'm not sure how to check the rest.
This would help me so much !
npm WARN engine sqlite3#2.1.17: wanted: {"node":">= 0.6.13 < 0.11.0"} (current: {"node":"0.12.0","npm":"2.5.1"})
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
It isn't clear? :P

Resources