随笔分类 - nodejs
摘要:还是老问题,在windows 上没问题,一到Linux 就有些奇奇怪怪的问题的。 windows 和 linux node 大版本都 16.x.x 的 百度搜,发现没有类似的答案之后去 google 搜,在guthub issue 论坛上找到了一个帖子,上面有说 把 yarn.lock 删掉重试的【
阅读全文
摘要:1. 除了主页页面,其他刷新404 vue-router 默认 hash 模式 —— 使用 URL 的 hash 来模拟一个完整的 URL,于是当 URL 改变时,页面不会重新加载。 如果不想要很丑的 hash,我们可以用路由的 history 模式,这种模式充分利用 history.pushSta
阅读全文
摘要:前情提要:在vue2项目打包时,发现图片打包失败, 然后百度寻求解决方案,看到这篇博文:https://segmentfault.com/q/1010000038931600?utm_source=tag-newest,我的报错和这个差不多一样,说可能时 image-webpack-loader 这
阅读全文
摘要:如标题所写,就是使用nodemon启动js脚本后,终端输出 [nodemon] restarting due to changes...,但是也没个重新启动,导致页面数据刷新也不改变。 解决方案: 1.卸载安装的 nodemon【current:2.0.13】 安装2.0.7的版本 2.百度还有人说
阅读全文
摘要:npm notice npm notice 📦 hijack-iori@1.0.0npm notice Tarball Contents npm notice 19B myModule-iori.jsnpm notice 315B package.jsonnpm notice Tarball De
阅读全文
摘要:用到的包: "dependencies": { "mysql": "^2.18.1", "node-schedule": "^1.3.2", "nodemailer": "^6.4.17", "pm2": "^4.5.1" }, "devDependencies": { "art-template"
阅读全文