Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not-Work-With-BSD #16

Closed
mlyy20190501 opened this issue Apr 7, 2021 · 1 comment
Closed

Not-Work-With-BSD #16

mlyy20190501 opened this issue Apr 7, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@mlyy20190501
Copy link

It seems to be this send only run on Linux, and I cannot npm install it on FreeBSD. Any one knows there is a solution? Error messages:

www@mybb:~/send-master % npm install

puppeteer@2.1.1 install /usr/home/www/send-master/node_modules/puppeteer
node install.js

/usr/home/www/send-master/node_modules/puppeteer/lib/helper.js:283
throw new Error(message);
^

Error: Unsupported platform: freebsd
at assert (/usr/home/www/send-master/node_modules/puppeteer/lib/helper.js:283:11)
at new BrowserFetcher (/usr/home/www/send-master/node_modules/puppeteer/lib/BrowserFetcher.js:96:7)
at module.exports.createBrowserFetcher (/usr/home/www/send-master/node_modules/puppeteer/lib/Puppeteer.js:102:12)
at Object. (/usr/home/www/send-master/node_modules/puppeteer/install.js:41:34)
at Module._compile (node:internal/modules/cjs/loader:1092:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
at node:internal/main/run_main_module:17:47
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"freebsd","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer@2.1.1 install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the puppeteer@2.1.1 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! /home/www/.npm/_logs/2021-04-07T14_53_51_902Z-debug.log
www@mybb:~/send-master %

for chinese words:

无法在 FreeBSD 上安装 send,有人成功上手过吗?

@timvisee
Copy link
Owner

timvisee commented Apr 7, 2021

puppeteer seems to be causing trouble here. I was/am not aware of this not being available on FreeBSD. It is used during development for automated testing.

Does installing dependencies without the development dependencies work? See: https://stackoverflow.com/a/9276112/1000145

@timvisee timvisee added the bug Something isn't working label Dec 9, 2021
@timvisee timvisee closed this as completed Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants