Hi all,
I have tried install the new ERPNEXT instance in the AWS server, I am getting some error in both Ubuntu 22.04 LTS and as well as Ubuntu 24.04 LTS. I don’t know where i am wrong. I check the yarn version and node version and altered. I don’t know how to solve this issue.
While using this command
bench init frappe-bench --frappe-branch version-15
frappe@ip-172-26-1-82:~$ bench init frappe-bench --frappe-branch version-15
Setting Up Environment
$ python3 -m venv env
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet wheel
Getting frappe
$ git clone https://github.com/frappe/frappe.git --branch version-15 --depth 1 --origin upstream
Cloning into 'frappe'...
remote: Enumerating objects: 3437, done.
remote: Counting objects: 100% (3437/3437), done.
remote: Compressing objects: 100% (3097/3097), done.
remote: Total 3437 (delta 413), reused 1591 (delta 223), pack-reused 0 (from 0)
Receiving objects: 100% (3437/3437), 21.47 MiB | 14.55 MiB/s, done.
Resolving deltas: 100% (413/413), done.
Installing frappe
$ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe
$ yarn install --check-files
yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error Error: https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz: Request failed "304 Not Modified"
at ResponseError.ExtendableBuiltin (/usr/local/lib/node_modules/yarn/lib/cli.js:696:66)
at new ResponseError (/usr/local/lib/node_modules/yarn/lib/cli.js:802:124)
at Request.<anonymous> (/usr/local/lib/node_modules/yarn/lib/cli.js:66750:16)
at Request.emit (node:events:524:28)
at module.exports.Request.onRequestResponse (/usr/local/lib/node_modules/yarn/lib/cli.js:142287:10)
at ClientRequest.emit (node:events:524:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:710:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)
at TLSSocket.socketOnData (node:_http_client:552:22)
at TLSSocket.emit (node:events:524:28)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
subprocess.CalledProcessError: Command 'yarn install --check-files' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/dist-packages/bench/commands/make.py", line 75, in init
init(
File "/usr/local/lib/python3.12/dist-packages/bench/utils/render.py", line 105, in wrapper_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/bench/utils/system.py", line 87, in init
get_app(
File "/usr/local/lib/python3.12/dist-packages/bench/app.py", line 778, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File "/usr/local/lib/python3.12/dist-packages/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/bench/app.py", line 253, in install
install_app(
File "/usr/local/lib/python3.12/dist-packages/bench/app.py", line 923, in install_app
bench.run(yarn_install, cwd=app_path)
File "/usr/local/lib/python3.12/dist-packages/bench/bench.py", line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/bench/utils/__init__.py", line 181, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: yarn install --check-files
ERROR: There was a problem while creating frappe-bench
Do you want to rollback these changes? [y/N]: y
INFO: Rolling back Bench "frappe-bench"
Can some one help me on this issue, Please