Skip to content
Advertisement

Tag: terminal

How to setup react properly

I have been following the react setup instructions on codecademy: When I type in “npm run build” into the terminal I get this error: I can’t seem to figure out how to get it to work. Here is the link to my code on my github: https://github.com/throwkill999/react_demo Answer The error tells you that output.build is not a valid option. You

Node.js console.log vs console.info

What is the benefit of using console.log vs console.info? Or any of the other console commands for that matter? vs I thought it might change the color of the output or concatenate some sort of label, but they seem to all do the same thing. And according to the documentation here: https://nodejs.org/api/console.html#console_console_info_data they seem to all do the same as

Express Node.js doesn’t work

I installed express 4 along with node.js,npm and express-generator on my ubuntu 12.04 and created an app using the following commands: Now what I should get is “Express server running on port 3000” but instead the command simply executes and doesn’t leave any message or error. So I have no idea of which port express is running on or whether

Advertisement