Hello World Addin fails at step - "npm install"

I have gone through the steps of the tutorial. I installed Node.js, Git, ACE, and ngrok.

It all works well until I get to the “Create a basic app” step 2.

When I run “npm install” I get the following:

C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon>npm install
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie http s://nodesecurity.io/advisories/130
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> sqlite3@3.1.4 install C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
node-pre-gyp verb cli   'C:\\Users\\Ron\\Documents\\Visual Studio 2015\\Projects\\Confluence\\confluence-helloworld-addon\\node_modules\\atlassian-connect-express\\node_modules\\sqlite3\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.28
node-pre-gyp info using node@8.9.4 | win32 | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3\lib\binding\node-v57-win32-x64\node_sqlite3.node" (not found)
node-pre-gyp http GET http s://mapbox-node-binary.s3.amazonaws. com/sqlite3/v3.1.4/node-v57-win32-x64.tar.gz
node-pre-gyp http 403 http s://mapbox-node-binary.s3.amazonaws. com/sqlite3/v3.1.4/node-v57-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download: http s://mapbox-node-binary.s3.amazonaws. com/sqlite3/v3.1.4/node-v57-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.4 and node@8.9.4 (node-v57 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball http s://mapbox-node-binary.s3.amazonaws. com/sqlite3/v3.1.4/node-v57-win32-x64.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (C:\Users\Ron\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\Ron\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack     at C:\Users\Ron\AppData\Roaming\npm\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Ron\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\Ron\\Documents\\Visual Studio 2015\\Projects\\Confluence\\confluence-helloworld-addon\\node_modules\\atlassian-connect-express\\node_modules\\sqlite3\\lib\\binding\\node-v57-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\Ron\\Documents\\Visual Studio 2015\\Projects\\Confluence\\confluence-helloworld-addon\\node_modules\\atlassian-connect-express\\node_modules\\sqlite3\\lib\\binding\\node-v57-win32-x64"
gyp ERR! cwd C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
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\Ron\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3\lib\binding\node-v57-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3\lib\binding\node-v57-win32-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Ron\\Documents\\Visual Studio 2015\\Projects\\Confluence\\confluence-helloworld-addon\\node_modules\\atlassian-connect-express\\node_modules\\sqlite3\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3
node-pre-gyp ERR! node -v v8.9.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.28
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Ron\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3\lib\binding\node-v57-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3\lib\binding\node-v57-win32-x64' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@3.1.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.1.4 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\Ron\AppData\Roaming\npm-cache\_logs\2018-02-14T20_08_47_211Z-debug.log

So, it looks like the installation process requires python. Do you have python installed and available in your path? If it is not in your path:

My python was installed incorrectly. I think I fixed that now.

Now I see this:

npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie htt ps://nodesecurity.io/advisories/130
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> sqlite3@3.1.4 install C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
node-pre-gyp verb cli   'C:\\Users\\Ron\\Documents\\Visual Studio 2015\\Projects\\Confluence\\confluence-helloworld-addon\\node_modules\\atlassian-connect-express\\node_modules\\sqlite3\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.28
node-pre-gyp info using node@8.9.4 | win32 | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3\lib\binding\node-v57-win32-x64\node_sqlite3.node" (not found)
node-pre-gyp http GET htt ps://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.4/node-v57-win32-x64.tar.gz
node-pre-gyp http 403 htt ps://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.4/node-v57-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download: htt ps://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.4/node-v57-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.4 and node@8.9.4 (node-v57 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball htt ps://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.4/node-v57-win32-x64.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  unpack_sqlite_dep
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Users\Ron\Documents
\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules
\sqlite3\build\deps\sqlite3.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\Ron\AppData\Roaming\npm\node_modules\npm\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\\Ron\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\Ron\\Documents\\Visual Studio 2015\\Projects\\Confluence\\confluence-helloworld-addon\\node_modules\\atlassian-connect-express\\node_modules\\sqlite3\\lib\\binding\\node-v57-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\Ron\\Documents\\Visual Studio 2015\\Projects\\Confluence\\confluence-helloworld-addon\\node_modules\\atlassian-connect-express\\node_modules\\sqlite3\\lib\\binding\\node-v57-win32-x64"
gyp ERR! cwd C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
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\Ron\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3\lib\binding\node-v57-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3\lib\binding\node-v57-win32-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Ron\\Documents\\Visual Studio 2015\\Projects\\Confluence\\confluence-helloworld-addon\\node_modules\\atlassian-connect-express\\node_modules\\sqlite3\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3
node-pre-gyp ERR! node -v v8.9.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.28
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\Ron\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3\lib\binding\node-v57-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Ron\Documents\Visual Studio 2015\Projects\Confluence\confluence-helloworld-addon\node_modules\atlassian-connect-express\node_modules\sqlite3\lib\binding\node-v57-win32-x64' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@3.1.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.1.4 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\Ron\AppData\Roaming\npm-cache\_logs\2018-02-14T22_00_39_854Z-debug.log

I installed C++ for visual studio and it fixed the problem.

Followed the advice here:

So apparently, python and C++ were causing the problems.

1 Like