cannot find module 'path' or its corresponding type declarations 1

cannot find module ‘path’ or its corresponding type declarations

npm i @types/node -D

Here is what the above code is Doing:
1. We’re importing the express module and saving it to a variable called express.
2. We’re creating an instance of express and saving it to a variable called app.
3. We’re creating a route for the root URL (‘/’) and sending a response of ‘Hello World!’.
4. We’re telling the app to listen on port 3000.

Similar Posts