npm / www

community space for the npm website
https://npm.community
69 stars 48 forks source link

Failure install jtls npm #360

Open ghost opened 6 years ago

ghost commented 6 years ago

I try resolve my problem with this resolution https://stackoverflow.com/questions/21365714/nodejs-error-installing-with-npm, but it not have result. On my board install C++, Build Tool, node-gyp and python 2.7

I am use:

npm install jtls

and get this error:

> x509@0.0.7 install c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509
> node-gyp rebuild
c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509>if not defined npm_config_node_gyp (node "C:\Users\Vlad\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\Vlad\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\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.
  addon.cc
  x509.cc
  win_delay_load_hook.cc
c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\include\x509.h(25): error C4430: missing type specifier - int assumed. Note: C++ does not supp
ort default-int (compiling source file ..\src\addon.cc) [c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\build\x509.vcxproj]
c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\include\x509.h(25): error C2143: syntax error: missing ',' before '&' (compiling source file .
.\src\addon.cc) [c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\build\x509.vcxproj]
c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\include\x509.h(26): error C4430: missing type specifier - int assumed. Note: C++ does not supp
ort default-int (compiling source file ..\src\addon.cc) [c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\build\x509.vcxproj]
c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\include\x509.h(26): error C2143: syntax error: missing ',' before '&' (compiling source file .
.\src\addon.cc) [c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\build\x509.vcxproj]
c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\include\x509.h(27): error C4430: missing type specifier - int assumed. Note: C++ does not supp
ort default-int (compiling source file ..\src\addon.cc) [c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\build\x509.vcxproj]
c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\include\x509.h(27): error C2143: syntax error: missing ',' before '&' (compiling source file .
.\src\addon.cc) [c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\build\x509.vcxproj]
c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\include\x509.h(28): error C4430: missing type specifier - int assumed. Note: C++ does not supp
ort default-int (compiling source file ..\src\addon.cc) [c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\build\x509.vcxproj]

... AND MORE TYPICAL ERRORS

..\src\x509.cc(228): error C2039: 'New': is not a member of 'v8::String' [c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\build\x509.vcxproj]
  c:\users\vlad\.node-gyp\8.9.4\include\node\v8.h(2443): note: see declaration of 'v8::String'
..\src\x509.cc(228): error C3861: 'New': identifier not found [c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\build\x509.vcxproj]
..\src\x509.cc(231): error C2039: 'New': is not a member of 'v8::String' [c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\build\x509.vcxproj]
  c:\users\vlad\.node-gyp\8.9.4\include\node\v8.h(2443): note: see declaration of 'v8::String'
..\src\x509.cc(231): fatal error C1003: error count exceeds 100; stopping compilation [c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509\build\x
509.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:\Users\Vlad\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\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:\\Users\\Vlad\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\npm-lifecycle\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Program Files\JetBrains\frontend\angular-2-template\node_modules\x509
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN angular-2@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! x509@0.0.7 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the x509@0.0.7 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\Vlad\AppData\Roaming\npm-cache\_logs\2018-03-28T15_30_38_510Z-debug.log