Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay Angular npm MVC Portlet not building in server version 7.4 ga8
Hi i am new to Liferay, I facing this Python 2 Yarn install error while bulding Angular npm mvc portlet in server version 7,4 Ga8 or more. the same module was working fine in server version 7.4 Ga2. I am stuck in this error please help, Thank you
Full error log...
gyp verb could not find "python". checking python
launcher
gyp verb could not find "python". guessing
location
gyp verb ensuring that file exists:
C:\Python27\python.exe
gyp ERR! configure error
gyp ERR!
stack Error: Can't find Python executable "python", you can
set the PYTHON env variable.
gyp ERR! stack at
PythonFinder.failNoPython
(D:\liferay_workspace_upgrade_ga8_shared\project\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous>
(D:\liferay_workspace_upgrade_ga8_shared\project\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at callback
(D:\liferay_workspace_upgrade_ga8_shared\project\node_modules\graceful-fs\polyfills.js:306:20)
gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command
"D:\\liferay_workspace_upgrade_ga8_shared\\project\\build\\node\\node.exe"
"D:\\liferay_workspace_upgrade_ga8_shared\\project\\node_modules\\node-gyp\\bin\\node-gyp.js"
"rebuild" "--verbose" "--libsass_ext="
"--libsass_cflags=" "--libsass_ldflags="
"--libsass_library="
gyp ERR! cwd
D:\liferay_workspace_upgrade_ga8_shared\project\node_modules\node-sass
gyp ERR! node -v v16.13.0
gyp ERR! node-gyp -v v3.8.0
gyp
ERR! not ok
Build failed with error code: 1
> Task :yarnInstall FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task
':yarnInstall'.
> Process 'command 'cmd'' finished with
non-zero exit value 1
Hi Manoj,
As this question is not directly related to Commerce, I would recommend you post this question in the Development (https://liferay.dev/ask/questions/development) section. You'll get a much better response over there.
Thanks a lot Jefferey Handa.
Powered by Liferay™