Nodejs Study Note One

Source: Internet
Author: User

One, node version of the update command

Install -G N Second Step: Upgrade node. js to the latest stable version n stable                                          n can also follow the version number, such as: N V0. 10.26  0.10.  -  -install Install--G Express #升级全局安装的express模块 NPM Uninstall Express #删除指定的模块

Ii. Update command for NPM

Install -G NPM

Third, use NPM to view all the modules that are installed globally

ls -G

Iv. user name of the individual NPM User: Byerhu

Because the official image of NPM is very slow, it is recommended to install NRM to switch the use of the image, the following is the NRM command

Install NRM-ls+ mirror name indicates which image to switch to

Vi. direct use of var data = Fs.readfilesync (' haha.txt '); The output data is <buffer E8 8f 9c ... > Binary. If you want to program string data, you need to add the. toString () function to the output.

Nodejs Study Note One

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.