nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.45k stars 278 forks source link

Starting nodemon & eslint Error #4214

Closed CameronB-Git closed 2 months ago

CameronB-Git commented 1 year ago

Details

I want to create a backend server that can store a list of values, that can be appended to etc. I have installed nodemon, node js, es lint etc. I have also created the package.json file for the backend server, as well as "app.js". To start the server, I run "npm start", and it throws an error when running the lint command: "The system cannot find the path specified". Screenshot 2023-07-27 131339 Screenshot of the error in cmd.

image Screenshot of the package.json file.

image Screenshot of the app.js file (console.log('hello) for testing purposes).

(I'm very new to JS as a whole, so it might just be a stupid mistake)

Node.js version

image

node version - 20.5.0

Example code

No response

Operating system

Windows 11

Scope

I need the server to run alongside the frontend server

Module and version

Not applicable.

preveen-stack commented 1 year ago

Try changing to "node_modules/.bin/eslint src/app.js"

CameronB-Git commented 1 year ago

Just tried this! Still returning the same error.

CameronB-Git commented 1 year ago

Didn't mean to close the issue :) Tried the above suggestion, didn't work.

github-actions[bot] commented 3 months ago

It seems there has been no activity on this issue for a while, and it is being closed in 30 days. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.

github-actions[bot] commented 2 months ago

It seems there has been no activity on this issue for a while, and it is being closed. If you believe this issue should remain open, please leave a comment. If you need further assistance or have questions, you can also search for similar issues on Stack Overflow. Make sure to look at the README file for the most updated links.