-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
构建前端报错 #4821
Comments
See
|
Hello @Greyisttot, your issue is invalid and will be closed. |
这样克隆才行 |
https://anwen-anyi.github.io/index/build/linux.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please make sure of the following things
alist
and not something else(such asDependencies
orOperational
).Alist Version / Alist 版本
dd5c0e560d116e91f13e552fe36880b6ff511af1
Driver used / 使用的存储驱动
CentOS Stream 9, node-20.4.0, npm-9.7.2, pnpm-8.6.9
Describe the bug / 问题描述
[vite:load-fallback] Could not load /alist/alist-web/solid-router/src (imported by src/main.tsx): ENOENT: no such file or directory, open '/alist/alist-web/solid-router/src'
error during build:
Error: Could not load /alist/alist-web/solid-router/src (imported by src/main.tsx): ENOENT: no such file or directory, open '/alist/alist-web/solid-router/src'
ELIFECYCLE Command failed with exit code 1.
Reproduction / 复现链接
yum update && yum upgrade
wget https://mirrors.aliyun.com/nodejs-release/v20.4.0/node-v20.4.0-linux-x64.tar.gz -O /usr/local/node-v20.4.0-linux-x64.tar.gz
tar -zxvf /usr/local/node-v20.4.0-linux-x64.tar.gz -C /usr/local
mv /usr/local/node-v20.4.0-linux-x64 /usr/local/node-v20.4.0
echo 'export NODE_HOME=/usr/local/node-v20.4.0' >> /etc/profile
echo 'export PATH=$PATH:$NODE_HOME/bin' >> /etc/profile
source /etc/profile
npm config set registry "https://registry.npm.taobao.org"
npm config get registry
node -v
npm -v
npm install -g pnpm
pnpm -v
cd /
yum install -y git
mkdir alist
cd alist
git clone https://github.com/alist-org/alist.git
git clone https://github.com/alist-org/alist-web.git
cd alist-web
wget https://crowdin.com/backend/download/project/alist/zh-CN.zip
unzip zh-CN.zip
node ./scripts/i18n.mjs
rm zh-CN.zip
pnpm install && pnpm run build
Logs / 日志
No response
The text was updated successfully, but these errors were encountered: