error while install node-pty libaray using npm - node.js

getting the following error while installing the node-pty module of the node.js using npm according to the documentation I use the following command npm i node-pty -g my system and node version is listed following and also window build tools also install version 2017 and 2015 also npm i node-gyp -g command runs successfully.
os: windows 10 pro
version:18363
node:12.16.3
npm:6.14.4
> node-pty#0.9.0 install C:\Program Files\nodejs\node_modules\node-pty
> node scripts/install.js
C:\Users\HP\AppData\Roaming\nvm\v12.16.3\node_modules\node-pty>if not defined npm_config_node_gyp (node "C:\Users\HP\AppData\Roaming\nvm\v12.16.3\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\HP\AppData\Roaming\nvm\v12.16.3\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
conpty.cc
path_util.cc
win_delay_load_hook.cc
C:\\Users\\HP\\AppData\\Local\\node-gyp\\Cache\\12.16.3\\x64\\node.lib : fatal error LNK1127: library is corrupt [C:\Users\HP\AppData\Roaming\nvm\v12.16.3\node_modules\node-pty\build\conpty.vcxproj]
conpty_console_list.cc
win_delay_load_hook.cc
C:\\Users\\HP\\AppData\\Local\\node-gyp\\Cache\\12.16.3\\x64\\node.lib : fatal error LNK1127: library is corrupt [C:\Users\HP\AppData\Roaming\nvm\v12.16.3\node_modules\node-pty\build\conpty_console_list.vcxproj]
AgentLocation.cc
winpty.cc
BackgroundDesktop.cc
Buffer.cc
DebugClient.cc
GenRandom.cc
OwnedHandle.cc
StringUtil.cc
WindowsSecurity.cc
WindowsVersion.cc
WinptyAssert.cc
WinptyException.cc
WinptyVersion.cc
win_delay_load_hook.cc
Creating library C:\Users\HP\AppData\Roaming\nvm\v12.16.3\node_modules\node-pty\build\Release\winpty.lib and object C:\Users\HP\AppData\Roaming\nvm\v12.16.3\node_modules\node-pty\build\Release\winpty.exp
winpty.vcxproj -> C:\Users\HP\AppData\Roaming\nvm\v12.16.3\node_modules\node-pty\build\Release\\winpty.dll
Agent.cc
AgentCreateDesktop.cc
ConsoleFont.cc
ConsoleInput.cc
ConsoleInputReencoding.cc
ConsoleLine.cc
DebugShowInput.cc
DefaultInputMap.cc
EventLoop.cc
InputMap.cc
LargeConsoleRead.cc
NamedPipe.cc
Scraper.cc
Terminal.cc
Win32Console.cc
Win32ConsoleBuffer.cc
main.cc
BackgroundDesktop.cc
Buffer.cc
DebugClient.cc
GenRandom.cc
OwnedHandle.cc
StringUtil.cc
WindowsSecurity.cc
WindowsVersion.cc
WinptyAssert.cc
WinptyException.cc
WinptyVersion.cc
win_delay_load_hook.cc
winpty-agent.vcxproj -> C:\Users\HP\AppData\Roaming\nvm\v12.16.3\node_modules\node-pty\build\Release\\winpty-agent.exe
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\HP\AppData\Roaming\nvm\v12.16.3\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:310:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\HP\\AppData\\Roaming\\nvm\\v12.16.3\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\HP\AppData\Roaming\nvm\v12.16.3\node_modules\node-pty
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-pty#0.9.0 install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-pty#0.9.0 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\HP\AppData\Roaming\npm-cache\_logs\2020-05-29T09_24_34_336Z-debug.log

Related

Problems installing bassaudio library with npm

I'm trying to install bassaudio library to my project, and npm throws an error every time I try to install it, whatever I tried until now to make it work.
I have the following error when I npm install bassaudio :
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.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: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.19041
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:\Users\myusername\projectname\node_modules\ref
gyp ERR! node -v v14.13.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ref#1.3.5 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ref#1.3.5 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\myusername\AppData\Roaming\npm-cache_logs\2020-10-15T12_22_17_205Z-debug.log
The log file is enormous and repeat this error at its end, so, not sure it would be relevant to copy paste it completely.
Update : For the next person trying to use bassaudio, or bassaudiolibrary, the first one isn't maintained to recent node/npm version, and the second is up to date, but incomplete.
I made a new package, bassaudio-updated which is updated and as complete as the other both libraries combined. I have only tested if for my needs yet, but I stay availaible if some problems occurs. :)

How to fix Node-gyp MSBuild.exe` failed with exit code: 1

I'm trying to install (npm i recommender) module but i came across several erros, regarding pyhon version an so on, the one i haven't got a solution for is Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
I tried removing and installing node-gyp module and applying also several solutions found on the internet(i have vs community 2017 with c++ installed), and used npm install --msvs_version=2017.
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\IANNIS\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:190:23)
gyp ERR! stack at ChildProcess.emit (events.js:203:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Users\\IANNIS\\Desktop\\project_app\\server\\node_modules\\node\\bin\\node.exe" "C:\\Users\\IANNIS\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\IANNIS\Desktop\project_app\server\node_modules\recommender
gyp ERR! node -v v12.6.0
gyp ERR! node-gyp -v v5.0.2
gyp ERR! not ok
npm WARN api_food_finder#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! recommender#3.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the recommender#3.0.0 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\IANNIS\AppData\Roaming\npm-cache\_logs\2019-07-15T21_15_43_134Z-debug.log
C:\Users\IANNIS\Desktop\project_app\server>

Node js can't install canvas on windows

I already tried installing it with the official Wiki documentation. No luck for me. I installed GTK and node-gyp too. I am not sure what's wrong.
Here is my error message.
C:\Users\User\Desktop\is vertical>npm i canvas
> canvas#1.6.10 install C:\Users\User\node_modules\canvas
> node-gyp rebuild
C:\Users\User\node_modules\canvas>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 )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build t
ools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install v120 bui
ld tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-cli
ck the solution, and then selecting "Retarget solution". [C:\Users\User\node_modules\canvas\build\canvas.vcxproj]
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 ChildProcess.emit (events.js:180:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209: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:\Users\User\node_modules\canvas
gyp ERR! node -v v9.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\User\package.json'
npm WARN User No description
npm WARN User No repository field.
npm WARN User No README data
npm WARN User No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! canvas#1.6.10 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas#1.6.10 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\User\AppData\Roaming\npm-cache\_logs\2018-04-08T22_35_58_874Z-debug.log

LDAP installation error

when i try to npm install ldapauth, it displays many errors. I spend the last 2 days checking for a solution but nothing. I tried to uninstall/ reinstall node & npm, same with node-gyp, and still got the error and also installed python but still getting below error :
i am getting error in console like this :
C:\Ruby24-x64\Files\MDash>npm install ldapauth
> buffertools#1.1.0 install C:\Ruby24-x64\Files\MDash\node_modules\buffertools
> node-gyp rebuild
C:\Ruby24-x64\Files\MDash\node_modules\buffertools>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\x64\PlatformToolsets\v140\Toolset.targets(36,5): error
MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK vers
ion in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:\Ruby24-x64\F
iles\MDash\node_modules\buffertools\build\buffertools.vcxproj]
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:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.15063
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:\Ruby24-x64\Files\MDash\node_modules\buffertools
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN minovate#1.2.0 No description
npm WARN minovate#1.2.0 No repository field.
npm WARN minovate#1.2.0 No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! buffertools#1.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the buffertools#1.1.0 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\miracle\AppData\Roaming\npm-cache\_logs\2017-12-06T14_44_34_406Z-debug.log
can you help me.
looks like you miss something : MSB8036: The Windows SDK version 8.1 was not found. You may need to install microsoft visual c++ http://landinghub.visualstudio.com/visual-cpp-build-tools
try to follow the option 1 from this procedure https://github.com/nodejs/node-gyp#on-windows

Unable to use npm install with zerorpc - error with the msgpack package

When I attempt to install the zerorpc library using npm as follows:
npm install zerorpc
I get the following error:
C:\Users\Jeff\AppData\Roaming\npm\node_modules\zerorpc\node_modules\msgpack>node "C:\Program Files (x86)\nodejs\node
_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
object.cpp
objectc.c
unpack.c
vrefbuffer.c
zone.c
version.c
libmsgpack.vcxproj -> C:\Users\Jeff\AppData\Roaming\npm\node_modules\zerorpc\node_modules\msgpack\build\Release\\
libmsgpack.lib
msgpack.cc
..\src\msgpack.cc(181): error C2466: cannot allocate an array of constant size 0 [C:\Users\Jeff\AppData\Roaming\npm
\node_modules\zerorpc\node_modules\msgpack\build\msgpackBinding.vcxproj]
..\src\msgpack.cc(181): error C2440: 'initializing' : cannot convert from 'int' to 'v8::Handle<v8::Value>' [C:\User
s\Jeff\AppData\Roaming\npm\node_modules\zerorpc\node_modules\msgpack\build\msgpackBinding.vcxproj]
Constructor for class 'v8::Handle<v8::Value>' is declared 'explicit'
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\
build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.j
s" "rebuild"
gyp ERR! cwd C:\Users\Jeff\AppData\Roaming\npm\node_modules\zerorpc\node_modules\msgpack
gyp ERR! node -v v0.10.31
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
And at the end of the installation process, I get the following errors:
npm ERR! msgpack#0.1.8 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the msgpack#0.1.8 install script.
npm ERR! This is most likely a problem with the msgpack 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 msgpack
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\
bin\\npm-cli.js" "install" "-g" "zerorpc"
npm ERR! cwd C:\node\pythontest
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\node\pythontest\npm-debug.log
npm ERR! not ok code 0
I'm running a clean install of Node.js on Windows 7 (x64).
Has anyone encountered this error before, and if so, how should I go about fixing it?
Thanks!
Edit:
When I install msgpack separately as follows:
npm install msgpack
It installs successfully:
C:\node\pythontest\node_modules\msgpack>node "C:\Program Files (x86)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..
\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
gcc_atomic.cpp
object.cpp
objectc.c
unpack.c
vrefbuffer.c
zone.c
version.c
libmsgpack.vcxproj -> C:\node\pythontest\node_modules\msgpack\build\Release\\libmsgpack.lib
msgpack.cc
C:\Users\Jeff\.node-gyp\0.10.31\deps\v8\include\v8.h(184): warning C4506: no definition for inline function 'v8::Pe
rsistent<v8::Object> v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>)' [C:\node\pythontest\node_modules\msgp
ack\build\msgpackBinding.vcxproj]
C:\Users\Jeff\.node-gyp\0.10.31\deps\v8\include\v8.h(184): warning C4506: no definition for inline function 'v8::Pe
rsistent<v8::FunctionTemplate> v8::Persistent<v8::FunctionTemplate>::New(v8::Handle<v8::FunctionTemplate>)' [C:\nod
e\pythontest\node_modules\msgpack\build\msgpackBinding.vcxproj]
Creating library C:\node\pythontest\node_modules\msgpack\build\Release\msgpackBinding.lib and object C:\node\p
ythontest\node_modules\msgpack\build\Release\msgpackBinding.exp
Generating code
c:\node\pythontest\node_modules\msgpack\src\msgpack.cc(360): warning C4715: 'unpack' : not all control paths return
a value [C:\node\pythontest\node_modules\msgpack\build\msgpackBinding.vcxproj]
Finished generating code
msgpackBinding.vcxproj -> C:\node\pythontest\node_modules\msgpack\build\Release\\msgpackBinding.node
msgpack#0.2.4 node_modules\msgpack
└── nan#1.0.0

Resources