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