提交 2521bd6f 编写于 作者: M m0_73544378

Tue Aug 6 11:08:00 CST 2024 inscode

上级 ca207a2f
run = "npm i && npm run dev" run = "npm i && npm run dev"
language = "node"
[env] [env]
PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}" PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}"
XDG_CONFIG_HOME = "/root/.config" XDG_CONFIG_HOME = "/root/.config"
npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global" npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
\ No newline at end of file
[debugger]
program = "main.js"
console.log("欢迎来到 InsCode"); const express = require('express')
\ No newline at end of file const app = express()
app.get('/',(req,res)=>{
console.log(req.url)
res.send({status:0,message:'welcome'})
})
app.listen(80,()=>{
console.log("欢迎来到 InsCode,listen at http://127.0.0.1:80");
})
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"dev": "node index.js", "dev": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@types/node": "^18.0.6", "@types/node": "^18.0.6",
"node-fetch": "^3.2.6" "express": "^4.19.2",
"node-fetch": "^3.2.6"
} }
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册