Product: NodeJS PDFNet SDK
Product Version: 9.4.0
Issue with Installation on Windows Server 2019 x64.
I’m facing an issue with installing the SDK for NodeJS on Windows 2019.
The URL “https://www.pdftron.com/downloads/PDFNetNode/9.4.0/pdfnet-addon-v9.4.0-node-v93-win32-ia32.tar.gz” is giving me a “403 Forbidden” response!
Node Version: 16.14.0
NPM Version: 8.3.1
Here’s the error I get when I run “npm i @pdftron/pdfnet-node”:
- npm ERR! path C:\nodeserver\node_modules@pdftron\pdfnet-node
- npm ERR! command failed
- npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build=false
- npm ERR! response status 403 Forbidden on https://www.pdftron.com/downloads/PDFNetNode/9.4.0/pdfnet-addon-v9.4.0-node-v93-win32-ia32.tar.gz
- npm ERR! node-pre-gyp info it worked if it ends with ok
- npm ERR! node-pre-gyp info using node-pre-gyp@1.0.10
- npm ERR! node-pre-gyp info using node@16.14.0 | win32 | ia32
- npm ERR! node-pre-gyp info check checked for “C:\nodeserver\node_modules@pdftron\pdfnet-node\pdfnet-addon.node” (not found)
- npm ERR! node-pre-gyp http GET https://www.pdftron.com/downloads/PDFNetNode/9.4.0/pdfnet-addon-v9.4.0-node-v93-win32-ia32.tar.gz
- npm ERR! node-pre-gyp ERR! install response status 403 Forbidden on https://www.pdftron.com/downloads/PDFNetNode/9.4.0/pdfnet-addon-v9.4.0-node-v93-win32-ia32.tar.gz
- npm ERR! node-pre-gyp ERR! install error
- npm ERR! node-pre-gyp ERR! stack Error: response status 403 Forbidden on https://www.pdftron.com/downloads/PDFNetNode/9.4.0/pdfnet-addon-v9.4.0-node-v93-win32-ia32.tar.gz
- npm ERR! node-pre-gyp ERR! stack at C:\nodeserver\node_modules@mapbox\node-pre-gyp\lib\install.js:67:15
- npm ERR! node-pre-gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:96:5)
- npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.17763
- npm ERR! node-pre-gyp ERR! command “C:\Program Files (x86)\nodejs\node.exe” “C:\nodeserver\node_modules\@mapbox\node-pre-gyp\bin\node-pre-gyp” “install” “–fallback-to-build=false”
- npm ERR! node-pre-gyp ERR! cwd C:\nodeserver\node_modules@pdftron\pdfnet-node
- npm ERR! node-pre-gyp ERR! node -v v16.14.0
- npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.10
- npm ERR! node-pre-gyp ERR! not ok
I tried deleting “node_modules” directory and package-lock.json, and I still get the same error.