文章分类 -  Nodejs

摘要:$ curl -o node-v14.15.0-linux-x64.tar.xz https://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.xz $ tar xf node-v12.18.1-linux-x64.tar.xz -C /o 阅读全文
posted @ 2020-11-10 11:01 叨叨的蜗牛 阅读(132) 评论(0) 推荐(0) 编辑
摘要:首先安装node-sass: npm install node-sass 然后提示没有权限创建目录,命令后面加上参数: --unsafe -perm 其他问题: 报错信息: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4. 阅读全文
posted @ 2020-11-09 13:28 叨叨的蜗牛 阅读(7355) 评论(0) 推荐(0) 编辑
摘要:即使后端已经允许了跨域,但是前端依然报一个跨域错误。 Access to XMLHttpRequest at 'http://localhost/api/admin/authorizations' from origin 'http://localhost:9528' has been blocke 阅读全文
posted @ 2019-05-17 14:01 叨叨的蜗牛 阅读(7840) 评论(0) 推荐(0) 编辑
摘要:Github地址 https://github.com/Unitech/pm2 官方文档 http://pm2.keymetrics.io/docs/usage/quick-start/ pm2是守护nodejs进程后台运行的,异常停止后可以自动重启,并且也可以袒护其它第三方的命令行程序,比如php 阅读全文
posted @ 2019-05-13 16:48 叨叨的蜗牛 阅读(15253) 评论(0) 推荐(0) 编辑
摘要:在最新的ES7(ES2017)中提出的前端异步特性:async、await。 什么是async、await? async顾名思义是“异步”的意思,async用于声明一个函数是异步的。而await从字面意思上是“等待”的意思,就是用于等待异步完成。并且await只能在async函数中使用 通常asyn 阅读全文
posted @ 2019-04-09 14:55 叨叨的蜗牛 阅读(1135) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/goloving/p/8889585.html 1、现象 看redux的时候发现官网的教程里直接import了一个文件夹,我再三确定没有看错, 是一个 文件夹 (Directory), 它直接 import了一个目录!这个 文件夹/目录 底下还有 阅读全文
posted @ 2018-12-25 13:50 叨叨的蜗牛 阅读(3590) 评论(0) 推荐(0) 编辑
摘要:转载:https://www.cnblogs.com/djjlovedjj/p/9050841.html 标准的vue-cli项目结构(httpConfig文件夹自己建的): api.js: http.js: main.js 请求示例: 阅读全文
posted @ 2018-12-17 13:56 叨叨的蜗牛 阅读(534) 评论(0) 推荐(0) 编辑
摘要:转载自: http://blog.csdn.net/a727911438/article/details/70834467?utm_source=itdadao&utm_medium=referral 在 HTML5的崛起、JavaScript要一统天下之际,有一个名为【跨平台】的技术越来越火。为什 阅读全文
posted @ 2018-10-18 14:02 叨叨的蜗牛 阅读(2078) 评论(0) 推荐(0) 编辑