the same time, in the browser input http://localhost:8080/, you can see a page written HelloWorld.Installing NPMNPM has a lot of good nodejs packages to solve common problems, such as using Node-mysql, you can easily link to MySQL through the Nodejs, database operationIn the development process will often need to use other packages, using NPM can download these packages for the program to callA) If the system does not have Git installed, you can down
Https://docs.npmjs.com/README.htmlThis is Npmjs's official website, for a certain English-based friends, reading such a raw document, will certainly benefit.1. What is NPM?NPM is the abbreviation for Node Package Manager, which is the bundle management tool for node. js. NPM makes it easier for JS developers to share and reuse code, and
You can use the NPM command-line tool to manage your private module code in the NPM repository, which makes it easier to use public modules in your project.Work before the startYou need a 2.7.0 version of NPM and need an account that can be logged into the NPM repository.Install -LoginPackage settingsAll private module
I. Installing node. jsDownload node. js and place it in the right placeSecond, modify the environment variablesAdd the node execution path to the system's environment variable path, adding "C:\Program files\node\" at the end of the value of the path variable;Third, verify node installationOpen the command line, enter node, the description succeedsIv. Download the decompression npm1. Download NPMSelect Zip Package, Address: https://github.com/npm/
The basic usageView all the information for a module, or you can view individual information NPM Info NAMENPM info name VERSIONNPM Info Name homepage Install supports multiple means, package name, git path, including local path can also sudo npm install-global [ package name]npm install git://github.com/package/path.git npm
the process ID is as follows:
PS-C between D-f | grep between d | tr-s ''| cut-D''-F 2
Or
PS aux | grep rjd | grep-V "grep" | awk-F "" '{print $2 }'
B. Stop running the script
Run MongoDB-stop on the command line. 3 nodejs Service Management 3.1 about forever
Forever manages node. js backend operations, restarts, and stops service monitoring.Program. 3.2 forever
Start:
Forever start/home/www/index. js
Stop:
Forever stop/home/www/index. js
Common commands:
Start sta
This article describes how to upload your NPM package to the NPM private library. When you have written your NPM component and want to share it with others or colleagues in the company, you can publish your NPM component (publish ). However, the NPM global library is estimat
How to Use npm to publish the Node. JS package
This article describes how to use npm to publish a Node. JS package. This article describes how to configure package. json, register an npm account, and publish a package. For more information, see
Npm is the package manager of Node. JS. During Node. JS development, it i
NPM Private package deployed to private warehouse
1. Project deployment to NPM
2. Construction of private warehouses
1, project deployment to NPM
Register for NPM account
Registered Address: https://www.npmjs.com/After registration, enter the email verification account login
This lesson focuses on: Strategy Evaluation (policy Evaluation) policy iteration (iteration) value iteration (value iteration) dynamic planning (DP, dynamic Programming) extended compression mappings
Dynamic programming is a method used to solve complex problems, which break the problem into many sub-problems, solve them one by one, and then merge them. These complex problems usually have two properties:1. The optimal solution can be decomposed into
Then enter as required until Isthisok? (Yes) Key Points for learning to generate a package. json File
View version
Upgrade
Installation Module
Modules
View the module list
Uninstall Module
Update Module
Search Module
Create a module
Release Module
REPL
Npm Package Manager
View version
[code]npm -v
Npm upgradeWindows
[code]
In May September, I wrote an article about how to manually manage Node. js Modules on the Windows platform [install the Node. js module on Windows]. At that time, on the one hand, I had limited understanding of Node. js, and it was really troublesome to deploy Node. js on the Windows platform, so I chose to manually manage the Node. js module.
Now the situation has changed significantly. On the one hand, Node. js has completed the transformation of the port-based network model on the Windows pla
Use nvm to manage nodes, npm, and nvmnpm of different versions
Note: nvm installed by brew install nvm on Mac cannot be correctly enabled due to different installation paths. We recommend that you use brew uninstall nvm to uninstall it and reinstall it once through the solution described in this article.
---
Recently, NodeJS version updates are somewhat faster than Chrome. The version 4.0 was not released for a long time, and another version 5.0 was l
Using the Package.js (using a Package.json)The best way to manage the local NPM package is to create a package.js file. The package.json file contains a lot of stuff.
He is a document that describes the packages that you have included in your project
Contains the version of the package used in your project
Better porting of projects (better to share your project with other developers)
Parameters that must be includedAs a minimal
This article describes how to use npm to publish a Node. JS package tutorial. This article describes how to configure a package. json, register an npm account, publish a package, etc. For more information, see if npm is a Node. JS Package Manager. During Node. JS development, it is often used to install/uninstall the package. In fact, the work of releasing a pack
1. Module conceptNative module: The native module provided by the node. JS API, the native module is loaded at startup.File module: Dynamic loading module, which is implemented and completed by the native modules module.The file module needs to be loaded by calling the Require method.node. JS has a cache of both modules and does not repeat the overhead to load the module, reading only the corresponding data.Invocation of native modules The node. js API require loads the appropriate node. JS mod
NET Core static files and the use of JS Package Manager (NPM, Bower)Article Directory
adding static files to ASP.
Managing JavaScript packages with NPM
Managing JavaScript packages with Bower
adding static files to ASP.While ASP. NET mostly does the back end of things, but the front-end of some static files is also very important. Components are required to enable static files in ASP M
1.NPM Install KOA-Installing the KOA module2.NPM Install-Install all dependent modules in Package.json3.NPM Update-Update all dependent modules in Package.json4.NPM Init-Create Package.json automatically5.NPM View KOA Version-View the latest version of the KOA module6.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.