zhang570221322 / autoclock Goto Github PK
View Code? Open in Web Editor NEW西安交通大学每日健康打卡脚本
License: GNU General Public License v3.0
西安交通大学每日健康打卡脚本
License: GNU General Public License v3.0
sudo apt-get install libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxi6 libxtst6 libnss3 libcups2 libxss1 libxrandr2 libasound2 libpangocairo-1.0-0 libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0
运行node autoDiDi.js后,错误代码
node autoDiDi.js
# node autoDiDi.js
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module '/root/autoDiDi.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
建议在自动打卡的时间能够随机一点,比如随机延迟至多一小时,或者在用户设置的时间段内随机运行。
目前这个时间特征比较明显。
今天失败,至少每天只需一次了,其他变化不大。
你好,在ubuntu 20.04 lts 上使用报错
TypeError: Cannot read property 'waitForSelector' of undefined
at my_main (/home/pt/autoClock/core/main.js:53:28)
at async /home/pt/autoClock/core/main.js:172:18
(而且readme中node temp_autoDiDi.js 的描述应该是 node autoDiDi_Once.js ,应该是忘记更新了)
我的操作是按照Readme来的,然后到最后一步,会一直卡在
node autoDiDi.js
前面的temp_autoDiDi是可以执行的。
我把整个文件夹删除了,重新clone了一次,还是这样。
您好!我平时主要写cpp和python, 对js不是很熟悉, 按照您的README指导, 在npm install那一步出现了以下错误, 请问是什么意思, 应该如何解决?
[email protected] install /root/autoClock/autoClock/node_modules/puppeteer
node install.js
ERROR: Failed to set up Chromium r756035! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
Error: EACCES: permission denied, mkdir '/root/autoClock/autoClock/node_modules/puppeteer/.local-chromium'
-- ASYNC --
at BrowserFetcher. (/root/autoClock/autoClock/node_modules/puppeteer/lib/helper.js:94:19)
at fetchBinary (/root/autoClock/autoClock/node_modules/puppeteer/install.js:148:8)
at download (/root/autoClock/autoClock/node_modules/puppeteer/install.js:54:9) {
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/root/autoClock/autoClock/node_modules/puppeteer/.local-chromium'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-06-19T08_58_24_891Z-debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.