express_example | An example node.js app using express | Runtime Evironment library
kandi X-RAY | express_example Summary
kandi X-RAY | express_example Summary
An example node.js app using express
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of express_example
express_example Key Features
express_example Examples and Code Snippets
Community Discussions
Trending Discussions on express_example
QUESTION
So I am simply learning NodeJs and came across the express module and so I can use it whenever I added -g
so that it was global but now I cant access it. Instead of my program running I am greeted with at Object. (C:\Users\*****\Documents\NodeJS Coding\Examples\Express_Example\app.js:1:17)
.
I have tried installing without -g
and that works but the global installation doesn't.
Here is my NodeJS code.
...ANSWER
Answered 2020-Jul-13 at 19:48You should not install express globally.
Express is a core dependency of your application. Users who might use your application and install its dependencies would not be aware of the express dependency that you installed globally on your machine.
For the same reason, if you ever wanted to migrate your application to a different system, you would have to additionally install express globally, even though it's a dependency of your application.
You should always install core dependencies as normal dependencies. Only miscellaneous packages (e.x. project generators, etc) should be installed globally, since users who install your application would not need to use them.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install express_example
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page