摘要: centOS 下安装完 node,在执行( node -v ) 检查安装结果时报了个错: /usr/local/bin/node: cannot execute binary file 字面意思:不能执行二进制文件 查阅文档: https://superuser.com/a/436081/13038 阅读全文
posted @ 2020-01-18 14:28 死宅程序员 阅读(10663) 评论(0) 推荐(1) 编辑
摘要: 有个 ts 项目编译时报错: Module not found: Error: Can't resolve 'xlsx' in 'd:\crx\crx-bus\src' 项目环境: - webpack v4.x - ts-loader v5.x - xlsx v0.15.4 分析 从报错字面理解,像 阅读全文
posted @ 2019-12-29 20:55 死宅程序员 阅读(2951) 评论(0) 推荐(0) 编辑
摘要: php 快捷执行代码 > 用于简单的语法测试 php -r 'echo "hello\n"; ' php -r "echo implode('|', array( 'js', 'css', 'tpl', 'html', 'xhtml', ));" php -r  阅读全文
posted @ 2019-11-06 15:14 死宅程序员 阅读(139) 评论(0) 推荐(0) 编辑
摘要: # 遭遇报错:Vue.js TypeError: Cannot set property 'render' of undefined # 工程背景- webpack + ts-loader + vue # 搜索得到的建议:- 保证声明的组件(.vue)有写`export default`导出模块 # 阅读全文
posted @ 2019-10-31 15:30 死宅程序员 阅读(3335) 评论(0) 推荐(0) 编辑
摘要: 在使用 npm install 时,总提示: Error: EACCES: permission denied 今天通过这个命令设置了权限解决了问题: sudo chown -R $(whoami) ~/.npm 方法来自:https://stackoverflow.com/a/51923345/1 阅读全文
posted @ 2019-03-13 11:04 死宅程序员 阅读(951) 评论(0) 推荐(0) 编辑
摘要: Mac 下升级 npm 到 v6.8.0 翻车。 提示: Error: Cannot find module './auth.js' 根据回显的报错路径,定位到这个文件中: npm/node_modules/npm-registry-fetch/index.js 同级目录下确实没有./auth.js 阅读全文
posted @ 2019-02-14 16:05 死宅程序员 阅读(534) 评论(0) 推荐(0) 编辑
摘要: WebAssembly Migration Guide Given the momentum of cross-browser WebAssembly support, we plan to focus our native code efforts on WebAssembly going for 阅读全文
posted @ 2019-01-30 01:04 死宅程序员 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 这是一个 JS 的报错。 如果你要声明一个常量,必须要赋初值。否则就会报错。 比如这样就可以触发这个报错: const foo; 或者 const bar = xxx; 等号右侧表达式由于拼写失误导致赋值失败,也会引起 这个 js 报错。 基于以上理论,相信你能顺利排查问题了。 人在江湖飘,哪能不带 阅读全文
posted @ 2018-12-18 17:20 死宅程序员 阅读(8771) 评论(0) 推荐(0) 编辑
摘要: 这笔修改体现了 env 和 global 的关系: https://github.com/g8up/youDaoDict/commit/8b05616f 官方文档表述: https://eslint.org/docs/user-guide/configuring Environments - whi 阅读全文
posted @ 2018-10-11 17:16 死宅程序员 阅读(1644) 评论(0) 推荐(0) 编辑
摘要: 在 chrome dev tools 中,通过 Application -> Cookies 可以查看 cookie。 其中有一列表头为`HTTP`,如果其下打勾了,则表明 httpOnly。 所谓 httpOnly,只能被服务端获取,而不能通过 Javascript 访问(document.coo 阅读全文
posted @ 2018-06-20 02:14 死宅程序员 阅读(540) 评论(0) 推荐(0) 编辑