Bench init error after updating node js

Hii community ,
i updated node js , then i had this issue when trying to make bench init benchname :

ahmad@ahmad-GE60-2PC:~/benches-workspace/testing-benchs$ bench init raghebccv
INFO:bench.utils:virtualenv -q env -p /usr/bin/python
Already using interpreter /usr/bin/python
INFO:bench.utils:./env/bin/pip -q install --upgrade pip
INFO:bench.utils:./env/bin/pip -q install wheel
INFO:bench.utils:./env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit
INFO:bench.app:getting app frappe
INFO:bench.utils:git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --origin upstream
Cloning into ‘frappe’…
remote: Counting objects: 128082, done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 128082 (delta 30), reused 27 (delta 14), pack-reused 128007
Receiving objects: 100% (128082/128082), 97.20 MiB | 79.00 KiB/s, done.
Resolving deltas: 100% (96427/96427), done.
Checking connectivity… done.
(‘installing’, u’frappe’)
INFO:bench.app:installing frappe
INFO:bench.utils:raghebccv/env/bin/pip install -q -e raghebccv/apps/frappe --no-cache-dir
INFO:bench.utils:npm install socket.io redis express superagent cookie
npm WARN deprecated isarray@2.0.1: Just use Array.isArray directly
ahmad@1.0.0 /home/ahmad
├─┬ express@4.15.3
│ └── cookie@0.3.1
├── redis@2.7.1
├── socket.io@2.0.1
└── superagent@3.5.2

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
npm WARN ahmad@1.0.0 No description
npm WARN ahmad@1.0.0 No repository field.
module.js:471
throw err;
^

Error: Cannot find module ‘less’
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/home/ahmad/benches-workspace/testing-benchs/raghebccv/apps/frappe/frappe/build.js:4:14)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
INFO:bench.utils:setting up backups
INFO:bench.utils:setting up auto update
Bench raghebccv initialized

bench start works fine with me , but the whole issue is when i use " Bench init "

this is command works for mee :

npm install babel-core less chokidar babel-preset-es2015 babel-preset-es2016 babel-preset-es2017 babel-preset-babili

3 Likes