javascript - errors with require and express -


i'm having trouble since few days require , express. first time used it, i'm front end dev , never touch back-end part. have entire site web (this personnal site, learn) , have use require , express. whatever do, have errors, , don't know !!!

this javascript/node part :

var express = require('/var/www/html/node_modules/express/lib/express.js'); // express web server framework var request = require('/var/www/html/node_modules/requirejs/require.js'); // "request" library var querystring = require('querystring'); var cookieparser = require('cookie-parser');  var client_id = '123456789876543210'; // secret var redirect_uri = 'mysite.com/playlist.html'; //  var socket = io.connect(); 

the html file :

      <script src="https://e-cdns-files.dzcdn.net/js/min/dz.js"></script>   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>   <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>    <script src="/node_modules/requirejs/require.js"></script>    <script src="/node_modules/express/lib/express.js"></script>  <script src="/node_modules/socket.io-client/dist/socket.io.js"></script> <script src="app.js"></script> 

and errors : require , express errors

thanks attention


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -