随笔分类 - Node.js
存储Node.js
摘要:报错信息 解决方案 npm install xlsx --save 参考链接 https://github.com/securedeveloper/react-data-export/issues/85#issuecomment-483662347
阅读全文
摘要:报错截图 错误原因 从其他文件引入变量时,未添加花括号 错误写法 解决方案 效果图 至此问题解决
阅读全文
摘要:软件下载 https://github.com/coreybutler/nvm-windows/releases/tag/1.1.7 解压并安装 双击程序一路安装即可。安装完成后,在控制台输入nvm出现下图内容就安装成功了 常用指令 查看已经安装的版本 参考链接 https://israynotar
阅读全文
摘要:// 对时间戳按日期进行分组 let moment = require('moment') let timestamp_array = [ 1645059333000, 1613523333000, 1297904133000, 1298076933000, 1582073733000, 16453
阅读全文
摘要:传入的数据与数据库类型不匹配
阅读全文
摘要:错误背景 封装脚手架时报错 错误原因 windows系统原因 解决方案 const createProjectAction = async (project) => { console.log("why help you create your project") // 1.clone项目 awai
阅读全文
摘要:错误背景 在开发npm包时,碰到此项报错 解决方案 选中任意js文件,选择打开方式,指定到node中即可
阅读全文
摘要:声明 windows中不支持Shebang,它是通过文件的扩展名来确定使用什么解释器来执行脚本 参考链接: https://juejin.cn/post/6844903826344902670
阅读全文
摘要:安装命令 npm install -g cnpm --registry=https://registry.npm.taobao.org 使用命令 cnpm install [name] 参考连接 https://zhuanlan.zhihu.com/p/120159632
阅读全文
摘要:切换到淘宝源 npm config set registry https://registry.npm.taobao.org 切换回官方源 npm config set registry http://www.npmjs.org
阅读全文
摘要:概念 A callback is a function that is passed as an argument to another function and is executed after its parent function has completed. 释义: 回调函数是作为参数传递
阅读全文
摘要:安装命令: npm install -g nodemon 运行命令: nodemon server.js 运行结果:
阅读全文