1.下载node for mac并一路默认安装 2.测试成功否 3.copy this file to test(save as javascript file) var http = require('http'); http.createServer(function(request,response){ response.writeHead(200,{'Content-Type':'text/plain'}); response.end('hello world\n'); }).liste
1. npm install 提示no such file or directory 缺少package.json 首先初始化, npm init -f 然后安装依赖 npm install formidable --save 即可. 2. 报错 npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm network This is a problem related to network connectivity 因为之前更改源为国内阿里云源,