Getting Started Problems

Hello everyone,

I’m new to developing for Confluence Cloud and wanted to start by following the Tutorial https://developer.atlassian.com/cloud/confluence/getting-started/ (My goal is to develop Space Blueprint).
I installed everything and it seems to work until the point of “npm start”. I get the following error:

confluence-multipage-blueprint-example@0.0.1 start C:\Users\xxxdirectory
node app.js

internal/modules/cjs/loader.js:638
throw err;
^

Error: Cannot find module ‘atlassian-connect-express’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (C:\Users*directory*\app.js:8:10)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! confluence-multipage-blueprint-example@0.0.1 start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the confluence-multipage-blueprint-example@0.0.1 start 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*USer*\AppData\Roaming\npm-cache_logs\2019-07-24T09_42_33_924Z-debug.log

After hours of searching and trying to new-install npm several times I just can’t help myself but asking you for your brainpower. Is anyone familiar with this error and managed to solve it? (I have to develop on windows)

Sincerly
Alex

What is the output of running npm install and then npm start?

Thank you for your response!

The error message for npm install looks like this

PS C:\Users\Username\Documents\Blueprint\confluence-multipage-blueprint-example> npm install
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated tar.gz@1.0.7: ⚠️  WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar

> ngrok@2.1.7 postinstall C:\Users\Username\Documents\Blueprint\confluence-multipage-blueprint-example\node_modules\ngrok
> node ./postinstall.js

ngrok - downloading binary https://bin.equinox.io/a/chRZWPptE7w/ngrok-2.1.1-windows-amd64.zip ...
ngrok - binary downloaded...
ngrok - error unpacking binary Error: You cannot extract a file outside of the target path
    at C:\Users\Username\Documents\Blueprint\confluence-multipage-blueprint-example\node_modules\decompress-zip\lib\decompress-zip.js:95:21
    at Array.map (<anonymous>)
    at C:\Users\Username\Documents\Blueprint\confluence-multipage-blueprint-example\node_modules\decompress-zip\lib\decompress-zip.js:91:25
    at _fulfilled (C:\Users\Username\Documents\Blueprint\confluence-multipage-blueprint-example\node_modules\q\q.js:854:54)
    at C:\Users\Username\Documents\Blueprint\confluence-multipage-blueprint-example\node_modules\q\q.js:883:30
    at Promise.promise.promiseDispatch (C:\Users\Username\Documents\Blueprint\confluence-multipage-blueprint-example\node_modules\q\q.js:816:13)
    at C:\Users\Username\Documents\Blueprint\confluence-multipage-blueprint-example\node_modules\q\q.js:624:44
    at runSingle (C:\Users\Username\Documents\Blueprint\confluence-multipage-blueprint-example\node_modules\q\q.js:137:13)
    at flush (C:\Users\Username\Documents\Blueprint\confluence-multipage-blueprint-example\node_modules\q\q.js:125:13)
    at process._tickCallback (internal/process/next_tick.js:61:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ngrok@2.1.7 postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ngrok@2.1.7 postinstall 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:

The Error for “npm start” :

> confluence-multipage-blueprint-example@0.0.1 start C:\Users\Username\Documents\Blueprint\confluence-multipage-blueprint-example
> node app.js

internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module 'atlassian-connect-express'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (C:\Users\Username\Documents\Blueprint\confluence-multipage-blueprint-example\app.js:8:10)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! confluence-multipage-blueprint-example@0.0.1 start: `node app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the confluence-multipage-blueprint-example@0.0.1 start 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\Username\AppData\Roaming\npm-cache\_logs\2019-07-26T11_44_38_753Z-debug.log

Is it a Windows-only problem maybe?

Alex

Hi @ALR
We found out this tutorial is currently outdated. Thanks for pointing it out. We have picked it up to fix it and will try to make it live very soon.

Meanwhile, you can checkout out this repo with updated code for multipage blueprint. Please note, README of it is not updated yet.

1 Like