Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Npm Install is giving errors #17

Open
AkashB22 opened this issue Mar 28, 2022 · 0 comments
Open

Npm Install is giving errors #17

AkashB22 opened this issue Mar 28, 2022 · 0 comments

Comments

@AkashB22
Copy link

Using windows 10 with following node and npm version,
C:\cfditest>node -v
v14.17.3

C:\cfditest>npm -v
6.14.13

When in run
npm i cfdi2pdf

Getting below errors,
c:\users\akash.b\appdata\local\node-gyp\cache\14.17.3\include\node\v8-platform.h(16): note: see declaration of 'v8' (compiling source file ..\src\xml_text.cc)
c:\cfditest\node_modules\libxmljs-mt\src\xml_attribute.h(17): error C2061: syntax error: identifier 'Handle' (compiling source file ..\src\xml_text.cc
) [C:\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(28): error C2660: 'v8::Value::ToObject': function does not take 0 arguments [C:\Akash\POC\XML-to-
PDF\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
c:\users\akash.b\appdata\local\node-gyp\cache\14.17.3\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\src\xml_text.cc)
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(35): error C2664: 'v8::String::Utf8Value::Utf8Value(const v8::String::Utf8Value &)': cannot conve
rt argument 1 from 'v8::Localv8::Value' to 'const v8::String::Utf8Value &' [C:\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(35): note: Reason: cannot convert from 'v8::Localv8::Value' to 'const v8::String::Utf8Value'
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(35): note: No user-defined-conversion operator available that can perform this conversion, or t
he operator cannot be called
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(50): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Akash\POC\XML-t
o-PDF\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(79): error C2440: '': cannot convert from 'v8::Localv8::Value' to 'v8::Str
ing::Utf8Value' [C:\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(79): note: No constructor could take the source type, or constructor overload resolution was am
biguous
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(89): error C2660: 'v8::Value::ToObject': function does not take 0 arguments [C:\Akash\POC\XML-to-
PDF\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
c:\users\akash.b\appdata\local\node-gyp\cache\14.17.3\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\src\xml_text.cc)
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(108): error C2660: 'v8::Value::ToObject': function does not take 0 arguments [C:\Akash\POC\XML-to
-PDF\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
c:\users\akash.b\appdata\local\node-gyp\cache\14.17.3\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\src\xml_text.cc)
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(128): error C2440: '': cannot convert from 'v8::Localv8::Value' to 'v8::St
ring::Utf8Value' [C:\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(128): note: No constructor could take the source type, or constructor overload resolution was a
mbiguous
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(130): error C2660: 'v8::Value::ToObject': function does not take 0 arguments [C:\Akash\POC\XML-to
-PDF\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
c:\users\akash.b\appdata\local\node-gyp\cache\14.17.3\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\src\xml_text.cc)
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(210): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Ak
ash\POC\XML-to-PDF\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
c:\users\akash.b\appdata\local\node-gyp\cache\14.17.3\include\node\v8.h(6482): note: see declaration of 'v8::FunctionTemplate::GetFunction' (compiling source file ..\src
\xml_text.cc)
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(252): error C2039: 'Handle': is not a member of 'v8' [C:\cfditest\node_modul
es\libxmljs-mt\build\xmljs.vcxproj]
c:\users\akash.b\appdata\local\node-gyp\cache\14.17.3\include\node\v8-platform.h(16): note: see declaration of 'v8'
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(252): error C2065: 'Handle': undeclared identifier [C:\cfditest\node_modules
\libxmljs-mt\build\xmljs.vcxproj]
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(252): error C2275: 'v8::Object': illegal use of this type as an expression [C:\Akash\POC\XML-to-P
DF\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(252): note: see declaration of 'v8::Object'
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(252): error C2065: 'target': undeclared identifier [C:\cfditest\node_modules
\libxmljs-mt\build\xmljs.vcxproj]
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(252): error C2761: 'void libxmljs::XmlText::Initialize(void)': redeclaration of member is not all
owed [C:\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
c:\cfditest\node_modules\libxmljs-mt\src\xml_text.cc(253): error C2448: 'libxmljs::XmlText::Initialize': function-style initializer appears to be a fu
nction definition [C:\cfditest\node_modules\libxmljs-mt\build\xmljs.vcxproj]
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\akash.b\AppData\Roaming\nvm\v14.17.3\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:375:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\akash.b\AppData\Roaming\nvm\v14.17.3\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\cfditest\node_modules\libxmljs-mt
gyp ERR! node -v v14.17.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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\akash.b\AppData\Roaming\npm-cache_logs\2022-03-28T11_41_16_975Z-debug.log
npm ERR! C:\Users\akash.b\AppData\Roaming\npm-cache_logs\2022-03-28T11_41_16_975Z-debug.logcould you please help us on this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant