Back to Forti Support

mh.bensta60656
mh.bensta60656

Hello, Can you help to install this theme it's so beautifull ! So I'm using laragon as environement in windows 10. I installed octoberCms correctly then i installed the theme from backend.

I have two erros : 1) After running npm install and npm audit fix, I perfomed npm run dev and here's the error :

forti-theme@1.0.0 development C:\laragon\www\EasyEasy\themes\thebakerdev-forti cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

'cross-env' n’est pas reconnu en tant que commande interneou externe, un programme exécutable ou un fichier de commandes. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! forti-theme@1.0.0 development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the forti-theme@1.0.0 development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2020-11-11T17_31_36_872Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! forti-theme@1.0.0 dev: npm run development npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the forti-theme@1.0.0 dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2020-11-11T17_31_36_969Z-debug.log"

1) When I type the Url of website I have this error :

Class name is not registered for the component "genericForm". Check the component plugin. C:\laragon\www\EasyEasy\modules\cms\classes\ComponentManager.php line 204

mh.bensta60656
mh.bensta60656

log error :

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\laragon\bin\nodejs\node-v12\node.exe',
1 verbose cli 'C:\laragon\bin\nodejs\node-v12\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dev'
1 verbose cli ]
2 info using npm@6.9.0
3 info using node@v12.5.0
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle forti-theme@1.0.0~predev: forti-theme@1.0.0
6 info lifecycle forti-theme@1.0.0~dev: forti-theme@1.0.0
7 verbose lifecycle forti-theme@1.0.0~dev: unsafe-perm in lifecycle true
8 verbose lifecycle forti-theme@1.0.0~dev: PATH: C:\laragon\bin\nodejs\node- v12\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\laragon\www\EasyEasy\themes\thebakerdev-forti\node_modules.bin;C:\Users\user\AppData\Local\Yarn\config\global\node_modules.bin;C:\Users\user\AppData\Roaming\npm;C:\Users\user\AppData\Roaming\Composer\vendor\bin;;C:\laragon\bin\laragon\utils;C:\laragon\bin\mysql\mysql-5.7.24-winx64\bin;C:\laragon\bin\php\php-7.2.19-Win32-VC15-x64;C:\laragon\bin\composer;C:\laragon\bin\apache\httpd-2.4.35-win64-VC15\bin;C:\laragon\bin\redis\redis-x64-3.2.100;C:\laragon\bin\nodejs\node-v12;C:\laragon\bin\nginx\nginx-1.16.0;C:\laragon\bin\notepad++;C:\laragon\bin\telnet;C:\laragon\bin\ngrok;C:\laragon\bin\git\bin;C:\laragon\bin\git\cmd;C:\laragon\bin\git\usr\bin;C:\laragon\bin\git\mingw64\bin;C:\laragon\bin;C:\laragon\usr\bin;C:\laragon\bin\putty;C:\laragon\bin\cmder\bin;C:\laragon\bin\cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\laragon\bin\cmder\vendor\conemu-maximus5;C:\laragon\bin\cmder\vendor\conemu-maximus5\ConEmu;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\dotnet\;C:\gs\gs;C:\HashiCorp\Vagrant\bin;C:\Users\user\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;;C:\Users\user\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Inkscape\bin;C:\laragon\bin\cmder\;
9 verbose lifecycle forti-theme@1.0.0~dev:CWD:C:\laragon\www\EasyEasy\themes\thebakerdev-forti
10 silly lifecycle forti-theme@1.0.0~dev: Args: [ '/d /s /c', 'npm run development' ]
11 silly lifecycle forti-theme@1.0.0~dev: Returned: code: 1 signal: null
12 info lifecycle forti-theme@1.0.0~dev: Failed to exec dev script
13 verbose stack Error: forti-theme@1.0.0 dev: npm run development
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\laragon\bin\nodejs\node-v12\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:200:13)
13 verbose stack at ChildProcess.<anonymous> (C:\laragon\bin\nodejs\node-v12\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:200:13)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid forti-theme@1.0.0
15 verbose cwd C:\laragon\www\EasyEasy\themes\thebakerdev-forti
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\laragon\bin\nodejs\node-v12\node.exe" "C:\laragon\bin\nodejs\node-v12\node_modules\npm\bin\npm-cli.js" "run" "dev"
18 verbose node v12.5.0
19 verbose npm v6.9.0
20 error code ELIFECYCLE
21 error errno 1
22 error forti-theme@1.0.0 dev: npm run development
22 error Exit status 1
23 error Failed at the forti-theme@1.0.0 dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

The Bakerdev
The Bakerdev

Hi mh.bensta60656,

This has something to do with cross-env dependency. Do you have it installed globally on your machine?

You could try these steps:

  1. Delete the node_modules folder
  2. Install cross env globally npm install --global cross-env
  3. Reinstall dependencies npm install
  4. Recompile npm run dev

Regarding your second error, do you have a plugin installed? Make sure not to add the form component in the contact partial.

Hope this helps

mh.bensta60656
mh.bensta60656

Hello Bakerdev team,

Thank your for your answer. 1) First issue resolved with your steps. 2) Second issue resolved by downloading Magic Forms Plugin.

Keep going it's a really nice work !

1-4 of 4