Not logged in : Login

About: http://ods-qa.openlinksw.com:8896/proxy-iri/21276f06a8663599a34a7844bf6e7ecd3284990f     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : schema:DiscussionForumPosting, within Data Space : ods-qa.openlinksw.com:8896 associated with source document(s)

AttributesValues
type
interactionStatistic
interactionType
userInteractionCount
  • 1
  • 0
datePublished
publisher
described by
container of
mainEntityOfPage
author
position
  • #3
  • #4
dateModified
  • 2019-07-17T09:43:10Z
articleBody
  • Hi Chris, Thanks for trying to help ! This is the URL of my tutorial : MDN Web Docs Setting up a Node development environment You now have a Node development environment up and running on your computer that can be used for creating Express web applications. You've also seen how NPM can be used to import Express into an application, and also how you can create applications... I was following the section “Using NPM”, at the “Running tasks” step. I successfully ran through all the steps above when I encountered the problems I described.
  • Right. So the good news is that you don’t need to follow this bit of the tutorial to use the rest of it. I’d probably advise ignoring eslint and npm scripts for now, as they are fiddly and hard to configure. If you want to continue trying to get this working, here are some tips: You need to add in the npm script to the package.json file, something like this: { "name": "myapp", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "lint": "eslint index.js" }, "author": "", "license": "ISC", "dependencies": { "express": "^4.17.1" }, "devDependencies": { "eslint": "^6.0.1" } } To create an eslint config, the easiest way is to use npx eslint --init - npx directly runs commands that are available inside node modules, rather than you having to go through the nightmare of figuring out all the path issues and stuff You can then run eslint on your index file using npx eslint index.js. This works fine To run the actual npm script we added to the package.json file, you should be able to do npm run lint. This gives the expected result, but it also throws an error right afterwards. And I’m not sure why. I’ve run out of time to look into this any more, but I hope this helps a bit.
  • Right. So the good news is that you don’t need to follow this bit of the tutorial to use the rest of it. I’d probably advise ignoring eslint and npm scripts for now, as they are fiddly and hard to configure. If you want to continue trying to get this working, here are some tips: You need to add in the npm script to the package.json file, something like this: { "name": "myapp", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "lint": "eslint index.js" }, "author": "", "license": "ISC", "dependencies": { "express": "^4.17.1" }, "devDependencies": { "eslint": "^6.0.1" } } To create an eslint config, the easiest way is to use npx eslint --init - npx directly runs commands that are available inside node modules, rather than you having to go through the nightmare of figuring out all the path issues and stuff You can then run eslint on your index file using npx eslint index.js. This works fine To run the actual npm script we added to the package.json file, you should be able to do npm run lint. This gives the expected result, but it also throws an error right afterwards. And I’m not sure why. I’ve run out of time to look into this any more, but I hope this helps a bit.
headline
  • Express Web Framework Tutorial : ESLint script
is interactionStatistic of
is topic of
is container of of
is object of
is subject of
Faceted Search & Find service v1.17_git55 as of Mar 01 2021


Alternative Linked Data Documents: ODE     Content Formats:       RDF       ODATA       Microdata      About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3322 as of Mar 14 2022, on Linux (x86_64-generic-linux-glibc25), Single-Server Edition (7 GB total memory)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software