随笔分类 -  Node.js

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

点击右上角即可分享
微信分享提示