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
MacBook-Air:~ xxx$ npm install webpack -g npm WARN invalid config registry="" npm WARN invalid config Must be a full url with 'http://' npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/webpack/node_modules/acorn-dyna