# 不知何時設定 https-proxy, 刪除即 ok npm config get https-proxy http://103.253.27.108:80/ npm config get proxy null npm config delete https-proxy npm config list ; "builtin" config from C:\Users\win10\AppData\Roaming\npm\node_modules\npm\npmrc prefix = "C:\\Users\\win10\\AppData\\Roaming\\npm" ; "cli" config from command line options omit = [] user-agent = "npm/7.6.3 node/v14.17.0 win32 x64" ; node bin location = D:\app\nodejs\node.exe ; cwd = D:\work\git\test-npm ; HOME = C:\Users\win10 ; Run `npm config ls -l` to show all defaults.
node.js server 中文亂碼
1 2 3 4 5 6 7 8 9 10 11 12 13 14
// 'Content-Type': 'text/html;charset=utf-8' 修正中文亂碼 // demo_module.js var http = require('http'); var dt = require('./myfirstmodule'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html;charset=utf-8'}); res.write("The date and time are currently: " + dt.myDateTime()); res.end(); }).listen(8080);
// myfirstmodule.js exports.myDateTime = function () { returnDate(); };
found vulnerabilities-漏洞
未找到一致解決方法
9 vulnerabilities (4 low, 5 moderate) 9 high severity vulnerabilities