tag:blogger.com,1999:blog-1409352204799783992.post3566860803537675277..comments2024-02-11T10:49:23.848+01:00Comments on Agile & Coding: JavaScript async: the future looks promisingDavid Vujichttp://www.blogger.com/profile/05640815111394960040noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1409352204799783992.post-78868034288254483002017-08-29T21:25:39.576+02:002017-08-29T21:25:39.576+02:00(I think this comment is about a different post in...(I think this comment is about a different post in this blog: http://davidvujic.blogspot.se/2017/08/ndc-oslo-video-javascript-in-2017-you-might-not-need-a-framework.html)<br /><br />Hi!<br /><br />Yes, to get everything installed correctly, you need to navigate to the project folder where the "package.json" file is. That's where you should type "npm install".<br /><br />The "npm start" command is intended to make it simple to run the web page in a local web server. If you are a Windows user, you could just create an IIS website instead - or install the node based "live-server", using the command "npm install --save-dev live-server".<br /><br />On Linux, and also on Mac OS X (I am pretty sure), Python is already installed. But not on Windows. If you like, you could install Python 2.7 - then you can use the built in SimpleHTTPServer.<br /><br />Thank you for your comment on this blog!David Vujichttps://www.blogger.com/profile/05640815111394960040noreply@blogger.comtag:blogger.com,1999:blog-1409352204799783992.post-48795514016390149292017-08-29T13:32:17.298+02:002017-08-29T13:32:17.298+02:00David, I don't know if I am doing things corre...David, I don't know if I am doing things correctly. I just guessed some things. This is what I did. I got an error - see below.<br /><br />(1) I downloaded the GitHub code at https://davidvujic.github.io/vanillajs-components/ and unzipped it.<br />(2) I downloaded npm and installed it. <br />(3) When I typed npm in the start area of Win 10, a noje.js command window appeared.<br />(4) I changed the directory to the one where your Github code is.<br />(5) I typed "npm install". (Lots of code appeared in a folder called node_modules.) <br />(6) I typed "npm start". I got an error message about a python server<br />(7) I went to the Python website and downloaded Python 3. <br />(7) I tried "npm start" again. I got the following error messages. Am I on the right track?<br /> Should I have downloaded Python 2? (KEY QUESTION) <br /><br />****** Error messages ******<br />17 error Windows_NT 10.0.15063<br />18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"<br />19 error node v6.11.2<br />20 error npm v3.10.10<br />21 error code ELIFECYCLE<br />22 error vanillajs-components@1.0.0 start: `python -m SimpleHTTPServer 8080`<br />22 error Exit status 1<br />23 error Failed at the vanillajs-components@1.0.0 start script 'python -m SimpleHTTPServer 8080'.<br />23 error Make sure you have the latest version of node.js and npm installed.<br />23 error If you do, this is most likely a problem with the vanillajs-components package,<br />23 error not with npm itself.<br />23 error Tell the author that this fails on your system:<br />23 error python -m SimpleHTTPServer 8080<br />23 error You can get information on how to open an issue for this project with:<br />23 error npm bugs vanillajs-components<br />23 error Or if that isn't available, you can get their info via:<br />23 error npm owner ls vanillajs-components<br />23 error There is likely additional logging output above.<br />24 verbose exit [ 1, true ]<br />**** End error messages ******<br /><br />Peterpdmunrohttps://www.blogger.com/profile/06100846169652395677noreply@blogger.com