Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Can not running on FreeBSD #1468

Open
xpader opened this issue May 8, 2020 · 0 comments
Open

Can not running on FreeBSD #1468

xpader opened this issue May 8, 2020 · 0 comments

Comments

@xpader
Copy link

xpader commented May 8, 2020

FreeBSD 12.1-amd64

First, npm install failed because of unsupport platform:

⠧ [36/87] Installing safe-buffer@^5.1.2platform unsupported babel-loader@8.1.0 › webpack@4.38.0 › watchpack@1.6.1 › chokidar@2.1.8 › fsevents@^1.2.7 Package require os(darwin) not compatible with your platform(freebsd)

[4/5] scripts.install puppeteer@^2.0.0 run "node install.js", root: "/root/src/send/node_modules/_puppeteer@2.1.1@puppeteer"
/root/src/send/node_modules/_puppeteer@2.1.1@puppeteer/lib/helper.js:283
    throw new Error(message);
    ^

Error: Unsupported platform: freebsd
    at assert (/root/src/send/node_modules/_puppeteer@2.1.1@puppeteer/lib/helper.js:283:11)
    at new BrowserFetcher (/root/src/send/node_modules/_puppeteer@2.1.1@puppeteer/lib/BrowserFetcher.js:96:7)
    at module.exports.createBrowserFetcher (/root/src/send/node_modules/_puppeteer@2.1.1@puppeteer/lib/Puppeteer.js:102:12)

Second, running failed:

(node:64640) UnhandledPromiseRejectionWarning: Error: no such file or directory
    at MemoryFileSystem.readFileSync (/root/src/send/node_modules/_memory-fs@0.4.1@memory-fs/lib/MemoryFileSystem.js:114:10)
    at getManifest (/root/src/send/common/assets.js:35:31)
    at Object.getAssetWithMiddleware [as get] (/root/src/send/common/assets.js:42:19)
    at module.exports (/root/src/send/server/state.js:43:28)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async index (/root/src/send/server/routes/pages.js:13:22)
   ERROR in ./node_modules/_@fluent_bundle@0.13.0@@fluent/bundle/src/index.js
    Module build failed (from ./node_modules/_webpack-unassert-loader@1.2.0@webpack-unassert-loader/index.js):
    Error: Line 10: Unexpected token
        at ErrorHandler.constructError (/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:5012:22)
        at ErrorHandler.createError (/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:5028:27)
        at Parser.unexpectedTokenError (/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:1985:39)
        at Parser.tolerateUnexpectedToken (/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:1998:42)
        at Parser.parseStatementListItem (/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:3365:31)
        at Parser.parseScript (/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:4723:29)
        at Object.parse (/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:122:61)
        at Object.module.exports (/root/src/send/node_modules/_webpack-unassert-loader@1.2.0@webpack-unassert-loader/index.js:20:21)

Third, webpage error:

app.1c5ba71c.js:67980 Uncaught Error: Module build failed (from ./node_modules/_webpack-unassert-loader@1.2.0@webpack-unassert-loader/index.js):
Error: Line 1: Unexpected token
    at ErrorHandler.constructError (:8080/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:5012)
    at ErrorHandler.createError (:8080/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:5028)
    at Parser.unexpectedTokenError (:8080/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:1985)
    at Parser.tolerateUnexpectedToken (:8080/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:1998)
    at Parser.parseStatementListItem (:8080/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:3371)
    at Parser.parseScript (:8080/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:4723)
    at Object.parse (:8080/root/src/send/node_modules/_esprima@4.0.1@esprima/dist/esprima.js:122)
    at Object.module.exports (:8080/root/src/send/node_modules/_webpack-unassert-loader@1.2.0@webpack-unassert-loader/index.js:20)
    at Object../node_modules/_crc@3.8.0@crc/crc32.js (app.1c5ba71c.js:67980)
    at __webpack_require__ (bootstrap:63)

I think that mozilla/send doesn't support freebsd yet..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant