stewartmcgown / drive-proxy Goto Github PK
View Code? Open in Web Editor NEWReverse proxy for Google Drive
Home Page: https://drive.mcgown.dev
License: Apache License 2.0
Reverse proxy for Google Drive
Home Page: https://drive.mcgown.dev
License: Apache License 2.0
tried deploying with cloudflare pages
Run npm run lint --if-present
> @stewartmcgown/[email protected] lint /home/runner/work/CDN/CDN
> eslint . --ext .ts,.tsx
/home/runner/work/CDN/CDN/src/cache.ts
Error: 1:31 error Identifier 'drive_v3' is not in camel case @typescript-eslint/camelcase
Error: 1:31 error Identifier 'drive_v3' is not in camel case @typescript-eslint/camelcase
Warning: 86:33 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
Warning: 88:16 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
โ 4 problems (2 errors, 2 warnings)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @stewartmcgown/[email protected] lint: `eslint . --ext .ts,.tsx`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @stewartmcgown/[email protected] lint 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! /home/runner/.npm/_logs/2021-07-25T16_49_18_602Z-debug.log
Error: Process completed with exit code 1.
Hello,
I'm in no way a coder, but more a copy/paster and would love to share some files from Google Drive on my site without making their download location visible, so your script looks perfect to do this.
On my (shared) host, I installed yarn v1.22.17 and node.js node-v17.3.0 in the root. Then I copied the drive-proxy script into the root of a subdomain and did the yarn/yarn start thing which resulted in some warnings and an error.
`[sdasds@jkjkjdskfjsd ~]$ cd subdomain.mysite.com
[sdasds@jkjkjdskfjsd subdomain.mysite.com]$ yarn
yarn install v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @typescript-eslint/[email protected]" has incorrect peer dependency "eslint@^5.0.0 || ^6.0.0".
warning " > @typescript-eslint/[email protected]" has incorrect peer dependency "eslint@^5.0.0 || ^6.0.0".
[4/4] Building fresh packages...
Done in 60.13s.
[sdasds@jkjkjdskfjsd subdomain.mysite.com]$ yarn start
yarn run v1.22.17
$ node build/src/main.js
internal/modules/cjs/loader.js:584
throw err;
^
Error: Cannot find module '/home5/xxxx/subdomain.mysite.com/build/src/main.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[sdasds@jkjkjdskfjsd subdomain.mysite.com]$`
In the directory of my subdomain, I now find a new directory node_modules which contains a lot of folders.
Any idea what went wrong?
Best regards,
Alex
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.