Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged node

0 votes
479 views
1 answer
    I have a project containing multiple other projects : Main project Mini project 1 Mini project 2 All containing ... .gitignore : *node_modules/* See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
313 views
1 answer
    Screenshot of termux with npm command question from:https://stackoverflow.com/questions/65888955/whenever-i-try-to-install-express-with-npm-through-termux-it-shows-error-why...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
305 views
1 answer
    I am using ubuntu terminal in windows 10. When I used the command prompt 'node' command used to work alright. But ... /node-command-is-not-found-in-ubuntu-terminal-in-windows-10...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
312 views
1 answer
    I want to manually parse source maps to do some stack trace manipulation. For that I use the ... stackoverflow.com/questions/65915036/webpack-replace-require-with-public-path...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
425 views
1 answer
    举个例子: [ Corporation { id: 1, name: 'xxxxasdad公司', state: 0, created_at: 2017-03-01T06:48:55.000Z, updated_at: 2017-03-01T06:48:55.000Z, ... 完全展开?(就像xml结构一样) 当然,这个锅是不是由终端导致的,我想 ...
asked Feb 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
310 views
1 answer
    想做一个后台,页面里有个按钮,点这个按钮,就能执行规定好的shell脚本,然后能在页面打印控制台的信息!麻烦了解的告知需要那些东西或相关资料(自己用,简单点就可以了),谢谢了...
asked Feb 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
344 views
1 answer
    想做一个后台,页面里有个按钮,点这个按钮,就能执行规定好的shell脚本,然后能在页面打印控制台的信息!麻烦了解的告知需要那些东西或相关资料(自己用,简单点就可以了),谢谢了...
asked Feb 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
332 views
1 answer
    如题,pm2的项目启动重启删除都简单通过一个命令搞定了,如果使用id操作的话,万一错了怎么办呢?请问pm2的部署方式上有什么容错办法?...
asked Feb 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
270 views
1 answer
    由于一个vue项目客户需求,要把原来的后台的单模版改成类似前台的多模板形式,因为前台页面我用的PHP做的多模板,所以实现比较容易,但是在vue中没有找到类似功能的Node模块,所以打算自己搞一 ... /default/views/'; return require($template + $view); } }; 请问该如何解决这个问题呢?谢谢......
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
334 views
1 answer
    我知道这个问题可能挺小白的(本人后端小白),不过真的是查了半天没查明白。问题是这样的: 我看了一些mongoose的文档,要对数据库操作都要先定义一个schema,这玩意我大概知道他是啥,但是文档里schema都是手写的,我觉得好麻烦,也觉得不科学,那么有没有从数据库的某个表,直接映射一个schema出来而不用自己手写的方法呢。。。。。谢谢大家。。。...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
358 views
1 answer
    我想抓取如下的网页内容, 但是普通抓取后,只显示模板结构, 请问各位大牛,这种情况怎么处理?...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
408 views
1 answer
    app.js // bodyParser :ajax 请求的配置项 //?parse?application/x-www-form-urlencoded? app.use(bodyParser.urlencoded({extended: false})); //?parse? ... 发,所以喜欢前后端分离,而不喜欢在服务端写页面模板,谢谢!...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
326 views
1 answer
    package.json 中的mysql 只是一个链接和操作数据的插件工具吗?...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
313 views
1 answer
    dao 层 daoUser.js /** * 用户注册 * @param params * @param callback */ exports.insert = function (params, callback) { let post = Object.assign( ... { error: err }); }); 这里并没有捕获数据库操作的异常...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
458 views
1 answer
    router/user /** * Created by xg on 2017/4/4. */ "use strict"; // var request = require('request'); var express = require('express'); var ... 然后调用其他服务的接口(post)获取更多维度的信息 是需要第三方插件实现吗?...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
328 views
1 answer
    用node+jsdom 爬 天猫详情图链接描述 发现详情区域的 dom 是 lazyload 的 有没有什么好的版本抓取到...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
419 views
1 answer
    在测试环境中是好的,到了线上,就出出现这样的错误: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 上网查了一下,大多都是说要 ... 的值,可是怎么知道 --max_old_space_size 的默认值呢,设置它时 有上线吗?...
asked Feb 6, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
303 views
1 answer
    //a.js var x = 1; function up(){ x++; } module.exports.x = x; module.exports.up = up; //b.js var vA = require('./a'); a.up(); console ... x) 如上3个文件 如何在b.js 和c.js 里可以改变a中的x值,并且共享x的值...
asked Feb 5, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
236 views
1 answer
    路由间事件通信问题,通过事件监听器问题 ... const EventEmitter = require('events') const eventBus = new EventEmitter() fastify.get('/', (request, ... .emit('evt') reply.send({ hello: 'world' }) }) ......
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
324 views
1 answer
    node 怎么把pdf 转化成图片 有什么插件么...
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
320 views
1 answer
    路由间事件通信问题,通过事件监听器问题 ... const EventEmitter = require('events') const eventBus = new EventEmitter() fastify.get('/', (request, ... .emit('evt') reply.send({ hello: 'world' }) }) ......
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
288 views
1 answer
    node 怎么把pdf 转化成图片 有什么插件么...
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
270 views
1 answer
    const xlsx = require('xlsx'); 使用的xlsx库下载 excel 数据,下载出来只有999条,怎么可以全部下载出来...
asked Jan 29, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
273 views
1 answer
    const request = require('request') request('https://www.xxx.cn/front/detail/item/36788268?timestamp= ... /item/36788268?timestamp=1592492065017 405 (Method Not Allowed)...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
250 views
1 answer
    有个歌词资源的字符编码有问题,utf8 和 BGK 两种。 我通过 express 发送的时候编码都是 utf-8,很是头秃。 我希望 charset 不显示或者 charset 可以设置为我自定义的。 我使用了一些方法都不行。版本是 4.x res.charset res.set() res.setHeader()...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
251 views
1 answer
    代码如下: var http = require("http"); var options = { // host: 'api.81p.net/api?p=json&t=jisupk10&token=15414985AABD5796&limit=1' host: ... 这个接口的数据呢??? http://api.81p.net/api?p=json......
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
480 views
1 answer
    错误信息:(每次都说第一次报错,第二次在执行就好了好神奇) Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad ... server/node_modules/@eggjs/router/node_modules/koa-compose/index.js:44:32)...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
434 views
1 answer
    错误信息:(每次都说第一次报错,第二次在执行就好了好神奇) Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad ... server/node_modules/@eggjs/router/node_modules/koa-compose/index.js:44:32)...
asked Jan 27, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

18 comments

40.4k users

...