6 Replies Latest reply on Feb 2, 2017 6:54 AM by Punya Sapkota

    Error starting test web server

    Dhanashree Arole

      Hello,

       

      As per tableau web data connector, I downloaded git and npm, the cloning went fine; however unable to successfully execute "npm start" command. It is complaining about non-existing js scripts:

       

       

      C:\Users\dhana_000\Documents\My Tableau Repository\WDC\webdataconnector-2.0.1>npm install --production

       

       

      C:\Users\dhana_000\Documents\My Tableau Repository\WDC\webdataconnector-2.0.1>npm start

       

       

      > webdataconnector@2.0.0 start C:\Users\dhana_000\Documents\My Tableau Repository\WDC\webdataconnector-2.0.1

      > node node_modules/npm-run-all/bin/npm-run-all --parallel corsproxy http-server

       

       

      module.js:471

          throw err;

          ^

       

       

      Error: Cannot find module 'C:\Users\dhana_000\Documents\My Tableau Repository\WDC\webdataconnector-2.0.1\node_modules\npm-run-all\bin\npm-run-all'

          at Function.Module._resolveFilename (module.js:469:15)

          at Function.Module._load (module.js:417:25)

          at Module.runMain (module.js:604:10)

          at run (bootstrap_node.js:394:7)

          at startup (bootstrap_node.js:149:9)

          at bootstrap_node.js:509:3

       

       

      npm ERR! Windows_NT 10.0.14393

      npm ERR! argv "C:\\Users\\dhana_000\\Documents\\My Tableau Repository\\Node\\node.exe" "C:\\Users\\dhana_000\\Documents\\My Tableau Repository\\Node\\node_modules\\npm\\bin\\npm-cli.js" "start"

      npm ERR! node v6.9.1

      npm ERR! npm  v3.10.8

      npm ERR! code ELIFECYCLE

      npm ERR! webdataconnector@2.0.0 start: `node node_modules/npm-run-all/bin/npm-run-all --parallel corsproxy http-server`

      npm ERR! Exit status 1

      npm ERR!

      npm ERR! Failed at the webdataconnector@2.0.0 start script 'node node_modules/npm-run-all/bin/npm-run-all --parallel corsproxy http-server'.

      npm ERR! Make sure you have the latest version of node.js and npm installed.

      npm ERR! If you do, this is most likely a problem with the webdataconnector package,

      npm ERR! not with npm itself.

      npm ERR! Tell the author that this fails on your system:

      npm ERR!     node node_modules/npm-run-all/bin/npm-run-all --parallel corsproxy http-server

      npm ERR! You can get information on how to open an issue for this project with:

      npm ERR!     npm bugs webdataconnector

      npm ERR! Or if that isn't available, you can get their info via:

      npm ERR!     npm owner ls webdataconnector

      npm ERR! There is likely additional logging output above.

       

       

      npm ERR! Please include the following file with any support request:

      npm ERR!     C:\Users\dhana_000\Documents\My Tableau Repository\WDC\webdataconnector-2.0.1\npm-debug.log

       

       

      C:\Users\dhana_000\Documents\My Tableau Repository\WDC\webdataconnector-2.0.1>

       

      I am following the steps listed in Get Started

       

      Any pointers on how to resolve it please?

       

      Thanks,

      DA

        • 1. Re: Error starting test web server
          Brendan Lee

          Hey Dhanashree,

           

          I think this is because of a bug in our documentation, my apologies for the trouble. We added the --production flag to the 2.1 SDK to save you time when installing dependencies.  However, our docs do not indicate this only works in 2.1+.  Since it looks like you are using the 2.0.1 release, using the --production flag won't work.  Instead of running "npm install --production", please run "npm install".

           

          I'll get the docs updated for this, thanks for bringing it to our attention!

           

          -Brendan

          1 of 1 people found this helpful
          • 2. Re: Error starting test web server
            Dhanashree Arole

            That resolved it, so do I need to install and start npm for every session to get to simulator and editing js file?

            • 3. Re: Error starting test web server
              Brendan Lee

              Nope, you will only need to do that once.  What's happening is that you are starting a local web server.  That local web server will serve web pages (in this case, all of the WDC files associated with each web data connector in the Examples folder, and the Simulator).  You can make edits to any of these files, and then just reload the web page in your browser to see the changes. 

              1 of 1 people found this helpful
              • 4. Re: Error starting test web server
                Dhanashree Arole

                Sounds good, thanks so much!

                • 5. Re: Error starting test web server
                  Yan Fei

                  hello Brendan,

                  I am trying to start the web server and got error:

                   

                  > export CORSPROXY_PORT=8889 || set CORSPROXY_PORT=8889 && node node_modules/corsproxy/bin/corsproxy

                   

                   

                  'export' is not recognized as an internal or external command,

                  operable program or batch file.

                  events.js:160

                        throw er; // Unhandled 'error' event

                        ^

                   

                   

                  Error: listen EADDRINUSE 0.0.0.0:8888

                      at Object.exports._errnoException (util.js:1022:11)

                      at exports._exceptionWithHostPort (util.js:1045:20)

                      at Server._listen2 (net.js:1259:14)

                      at listen (net.js:1295:10)

                      at net.js:1405:9

                      at _combinedTickCallback (internal/process/next_tick.js:77:11)

                      at process._tickCallback (internal/process/next_tick.js:98:9)

                      at Module.runMain (module.js:606:11)

                      at run (bootstrap_node.js:394:7)

                      at startup (bootstrap_node.js:149:9)

                   

                   

                  npm ERR! Windows_NT 10.0.14393

                  npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run-script" "http-server"

                  npm ERR! node v6.9.4

                  npm ERR! npm  v3.10.10

                  npm ERR! code ELIFECYCLE

                  npm ERR! webdataconnector@2.0.0 http-server: `node node_modules/http-server/bin/http-server -p 8888`

                  npm ERR! Exit status 1

                  npm ERR!

                  npm ERR! Failed at the webdataconnector@2.0.0 http-server script 'node node_modules/http-server/bin/http-server -p 8888'.

                  npm ERR! Make sure you have the latest version of node.js and npm installed.

                  npm ERR! If you do, this is most likely a problem with the webdataconnector package,

                  npm ERR! not with npm itself.

                  npm ERR! Tell the author that this fails on your system:

                  npm ERR!     node node_modules/http-server/bin/http-server -p 8888

                  npm ERR! You can get information on how to open an issue for this project with:

                  npm ERR!     npm bugs webdataconnector

                  npm ERR! Or if that isn't available, you can get their info via:

                  npm ERR!     npm owner ls webdataconnector

                  npm ERR! There is likely additional logging output above.

                   

                   

                  npm ERR! Please include the following file with any support request:

                  npm ERR!     c:\Data\Raben\gitclone\webdataconnector-2.0.1\npm-debug.log

                  ERROR: "http-server" exited with 1.

                   

                   

                  npm ERR! Windows_NT 10.0.14393

                  npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"

                  npm ERR! node v6.9.4

                  npm ERR! npm  v3.10.10

                  npm ERR! code ELIFECYCLE

                  npm ERR! webdataconnector@2.0.0 start: `node node_modules/npm-run-all/bin/npm-run-all --parallel corsproxy http-server`

                  npm ERR! Exit status 1

                  npm ERR!

                  npm ERR! Failed at the webdataconnector@2.0.0 start script 'node node_modules/npm-run-all/bin/npm-run-all --parallel corsproxy http-server'.

                  npm ERR! Make sure you have the latest version of node.js and npm installed.

                  npm ERR! If you do, this is most likely a problem with the webdataconnector package,

                  npm ERR! not with npm itself.

                  npm ERR! Tell the author that this fails on your system:

                  npm ERR!     node node_modules/npm-run-all/bin/npm-run-all --parallel corsproxy http-server

                  npm ERR! You can get information on how to open an issue for this project with:

                  npm ERR!     npm bugs webdataconnector

                  npm ERR! Or if that isn't available, you can get their info via:

                  npm ERR!     npm owner ls webdataconnector

                  npm ERR! There is likely additional logging output above.

                   

                  looks like "export" cmd is the problem? which script is it at? 

                  • 6. Re: Error starting test web server
                    Punya Sapkota

                    Hi,

                     

                    I am unable to start npm...can anyone point me to the solution. Below are the error message I am receiving.

                     

                    ...........My Tableau Repository\WDC\webdataconnector>npm start

                     

                    > webdataconnector@2.0.0 start ................Documents\My Tableau Repository\WDC\webdataconnector

                    > node node_modules/npm-run-all/bin/npm-run-all --parallel corsproxy http-server

                     

                     

                    > webdataconnector@2.0.0 http-server .....Documents\My Tableau Repository\WDC\webdataconnector

                    > node node_modules/http-server/bin/http-server -p 8888 -c-1

                     

                     

                    > webdataconnector@2.0.0 corsproxy ...........Documents\My Tableau Repository\WDC\webdataconnector

                    > export CORSPROXY_PORT=8889 || set CORSPROXY_PORT=8889 && node node_modules/corsproxy/bin/corsproxy

                     

                    'export' is not recognized as an internal or external command,

                    operable program or batch file.

                    1. events.js:160

                          throw er; // Unhandled 'error' event

                          ^

                     

                    Error: listen EACCES 0.0.0.0:8888

                        at Object.exports._errnoException (util.js:1022:11)

                        at exports._exceptionWithHostPort (util.js:1045:20)

                        at Server._listen2 (net.js:1246:19)

                        at listen (net.js:1295:10)

                        at net.js:1405:9

                        at _combinedTickCallback (internal/process/next_tick.js:77:11)

                        at process._tickCallback (internal/process/next_tick.js:98:9)

                        at Module.runMain (module.js:606:11)

                        at run (bootstrap_node.js:394:7)

                        at startup (bootstrap_node.js:149:9)

                     

                    npm ERR! Windows_NT 6.1.7601

                    npm ERR! argv "C:\\nodejs\\node.exe" "......AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run-script" "http-server"

                    npm ERR! node v6.9.4

                    npm ERR! npm  v4.1.2

                    npm ERR! code ELIFECYCLE