Giter Site home page Giter Site logo

alloy-worker's Issues

webpack5

webpack5: 支持有时间节点吗?

接入指南-步骤3复制 Worker 源码失败

  1. 下载源码 : 下载 template demo 项目 ; 顺利
  2. 安装 alloy-worker: cd template && 安装 alloy-worker :顺利
  3. 复制 Worker 源码 : 失败
    `$ npx alloy-worker eject
    The syntax of the command is incorrect.
    child_process.js:866
    throw err;
    ^

Error: Command failed: mkdir -p src/
The syntax of the command is incorrect.

at checkExecSyncError (child_process.js:790:11)
at execSync (child_process.js:863:15)
at module.exports (D:\rt\reacat-wp5\node_modules\alloy-worker\src\command\eject-script.js:15:5)
at Object.<anonymous> (D:\rt\reacat-wp5\node_modules\alloy-worker\src\command\index.js:27:5)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47 {

status: 1,
signal: null,
output: [
null,
Buffer(0) [Uint8Array] [],
Buffer(41) [Uint8Array] [
84, 104, 101, 32, 115, 121, 110, 116, 97,
120, 32, 111, 102, 32, 116, 104, 101, 32,
99, 111, 109, 109, 97, 110, 100, 32, 105,
115, 32, 105, 110, 99, 111, 114, 114, 101,
99, 116, 46, 13, 10
]
],
pid: 22176,
stdout: Buffer(0) [Uint8Array] [],
stderr: Buffer(41) [Uint8Array] [
84, 104, 101, 32, 115, 121, 110, 116, 97,
120, 32, 111, 102, 32, 116, 104, 101, 32,
99, 111, 109, 109, 97, 110, 100, 32, 105,
115, 32, 105, 110, 99, 111, 114, 114, 101,
99, 116, 46, 13, 10
]
}

'pwd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�������ļ�
child_process.js:866
throw err;
^

Error: Command failed: pwd
'pwd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

at checkExecSyncError (child_process.js:790:11)
at execSync (child_process.js:863:15)
at Object.<anonymous> (D:\rt\reacat-wp5\node_modules\alloy-worker\src\command\one-script\config.js:13:21)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (D:\rt\reacat-wp5\node_modules\alloy-worker\src\command\one-script\check-name.js:6:16) {

status: 1,
signal: null,
output: [
null,
Buffer(0) [Uint8Array] [],
Buffer(62) [Uint8Array] [
39, 112, 119, 100, 39, 32, 178, 187, 202, 199,
196, 218, 178, 191, 187, 242, 205, 226, 178, 191,
195, 252, 193, 238, 163, 172, 210, 178, 178, 187,
202, 199, 191, 201, 212, 203, 208, 208, 181, 196,
179, 204, 208, 242, 13, 10, 187, 242, 197, 250,
180, 166, 192, 237, 206, 196, 188, 254, 161, 163,
13, 10
]
],
pid: 26848,
stdout: Buffer(0) [Uint8Array] [],
stderr: Buffer(62) [Uint8Array] [
39, 112, 119, 100, 39, 32, 178, 187, 202, 199,
196, 218, 178, 191, 187, 242, 205, 226, 178, 191,
195, 252, 193, 238, 163, 172, 210, 178, 178, 187,
202, 199, 191, 201, 212, 203, 208, 208, 181, 196,
179, 204, 208, 242, 13, 10, 187, 242, 197, 250,
180, 166, 192, 237, 206, 196, 188, 254, 161, 163,
13, 10
]
}
`

我是在template的与src同级的目录下执行 npx alloy-worker eject 命令
node-v : 14.18.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.