Unable to install node-occ with npm
See original GitHub issueHello, I am not able to install node-occ using npm. Could you provide any help on this regard? Please see below my error log. I am using Node v.10.15.3. Thank you!
PS C:\Users\giuli\Documents\3d-test\3d-test> npm install node-occ
> node-occ@0.3.0 install C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/openwebcad/node-occ/releases/download/0.3.0/occ-v0.3.0-node-v64-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-occ@0.3.0 and node@10.15.3 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
Warning: Missing input files:
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKFillet.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKGeomBase.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKShHealing.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKG3d.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKXSBase.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKBool.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKSTEP209.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKBRep.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKBO.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKSTL.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKOffset.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKTopAlgo.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKernel.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKSTEPBase.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKPrim.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKGeomAlgo.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKG2d.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKMesh.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\src\all.cc
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKMath.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKSTEPAttr.dll
C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\build\..\occt-7.2.0\win64\vc14\bin\TKSTEP.dll
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
all.cc
win_delay_load_hook.cc
c1xx : fatal error C1083: Cannot open source file: '..\src\all.cc': No such file or directory [C:\Users\giuli\Documents\3
d-test\3d-test\node_modules\node-occ\build\occ.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\giuli\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\giuli\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\giuli\\Documents\\3d-test\\3d-test\\node_modules\\node-occ\\lib\\binding\\occ.node" "--module_name=occ" "--module_path=C:\\Users\\giuli\\Documents\\3d-test\\3d-test\\node_modules\\node-occ\\lib\\binding" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\giuli\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\lib\binding\occ.node --module_name=occ --module_path=C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\lib\binding --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:189:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Windows_NT 10.0.17763
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\giuli\\Documents\\3d-test\\3d-test\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ
node-pre-gyp ERR! node -v v10.15.3
node-pre-gyp ERR! node-pre-gyp -v v0.9.1
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\giuli\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\lib\binding\occ.node --module_name=occ --module_path=C:\Users\giuli\Documents\3d-test\3d-test\node_modules\node-occ\lib\binding --napi_version=3 --node_abi_napi=napi' (1)
npm WARN bootstrap@4.3.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-occ@0.3.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-occ@0.3.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\giuli\AppData\Roaming\npm-cache\_logs\2019-07-15T10_12_13_889Z-debug.log
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Npm can't install any packages - node.js - Stack Overflow
Solved: 32-bit NodeJs completely solved my problem. ... npm install npm -g. and afterwards I was able to install packages as normal again....
Read more >Unable to install NodeJS in Windows 10 · Issue #313 - GitHub
I got this error when I'm trying to install node.js. I've tried all the listed answers, none worked. Screenshot (2) ...
Read more >How to fix npm install command not working
The error above happens when npm can't be found under the PATH environment variable. First, you need to make sure that npm is...
Read more >Downloading and installing Node.js and npm
If you are unable to use a Node version manager, you can use a Node installer to install both Node.js and npm on...
Read more >Can't install npm - Unable to correct problems, you have held ...
The error you're getting is because the npm package is tied to the built-in nodejs package.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@erossignon I’ve no Windows installed at the moment. However, if you can’t have time, I’ll setup a Windows and try to solve the problem ASAP.
Sorry, I was very busy these days. I’ll look at this ASAP.