Skip to main content
ArcBlock Community

无法启动react服务

CYS
Support

创建blocklet应用时选的是 react​+express+typescript模版,在安装几个dependency之后就出现如下错误,无法通过npm run dev启动react服务:

(2024-08-24 14:21): (node) ExperimentalWarning: Permission is an experimental feature

(2024-08-24 14:21): (Use node --trace-warnings ... to show where the warning was created)

(2024-08-24 14:21): (node) SecurityWarning: The flag --allow-addons must be used with extreme caution. It could invalidate the permission model.

(2024-08-24 14:21): (node) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model.

(2024-08-24 14:21): (node) SecurityWarning: The flag --allow-worker must be used with extreme caution. It could invalidate the permission model.

(2024-08-24 14:21): (node) ExperimentalWarning: Permission is an experimental feature

(2024-08-24 14:21): (Use node --trace-warnings ... to show where the warning was created)

(2024-08-24 14:21): (node) SecurityWarning: The flag --allow-addons must be used with extreme caution. It could invalidate the permission model.

(2024-08-24 14:21): (node) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model.

(2024-08-24 14:21): (node) SecurityWarning: The flag --allow-worker must be used with extreme caution. It could invalidate the permission model.

(2024-08-24 14:21): [nodemon] 3.1.4

(2024-08-24 14:21): [nodemon] to restart at any time, enter rs

(2024-08-24 14:21): [nodemon] watching path(s): api/**/*

(2024-08-24 14:21): [nodemon] watching extensions: ts,json

(2024-08-24 14:21): [nodemon] starting ts-node api/dev.ts

Checking endpoint healthy for my-blocklet1, port: 8098, minConsecutiveTime: 1s, timeout: 3600s

(2024-08-24 14:21): (node) ExperimentalWarning: Permission is an experimental feature

(2024-08-24 14:21): (Use node --trace-warnings ... to show where the warning was created)

(2024-08-24 14:21): (node) SecurityWarning: The flag --allow-addons must be used with extreme caution. It could invalidate the permission model.

(2024-08-24 14:21): (node) SecurityWarning: The flag --allow-child-process must be used with extreme caution. It could invalidate the permission model.

(2024-08-24 14:21): (node) SecurityWarning: The flag --allow-worker must be used with extreme caution. It could invalidate the permission model.

(2024-08-24 14:21): > my-blocklet1 v0.1.0 ready on 8098

(2024-08-24 14:21): (node) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.

(2024-08-24 14:21): Fetch blocklet.js succeed: zNKZfkshoCJTqyjV1uMZouExgEzjAYDwCSRQ/z2qaKgjriXggJyQAGSMEde5JhzRqgkJEH9ZFa

(2024-08-24 14:21): Re-optimizing dependencies because lockfile has changed

(2024-08-24 14:21): TypeError: The "reference" argument must be of type string. Received an instance of Buffer

(2024-08-24 14:21): at Object.has (node/process/permission:25)

(2024-08-24 14:21): at lstat (node:fs:1551)

(2024-08-24 14:21): at _rimraf (node/fs/rimraf:67)

(2024-08-24 14:21): at rimraf (node/fs/rimraf:46)

(2024-08-24 14:21): at node/fs/rimraf:145

(2024-08-24 14:21): at Array.forEach (<anonymous>)

(2024-08-24 14:21): at node/fs/rimraf:142

(2024-08-24 14:21): at FSReqCallback.oncomplete (node:fs:187) {

(2024-08-24 14:21): code: 'ERR_INVALID_ARG_TYPE'

(2024-08-24 14:21): }

(2024-08-24 14:21): [nodemon] app crashed - waiting for file changes before starting...

✖ my-blocklet1@0.1.0 start failed for my-blocklet1: connect ECONNREFUSED 127.0.0.1

1 reply

zhanghan2 years ago

未能复现你描述的错误,请在终端中输入 blocklet server info ,并贴出运行后的结果到这里,有助于我帮你查找问题的所在

Reply