Hi there,
"flexmonster create angular -r" generates an error. I have upgraded to the last version of flexmonster.
Here are some info :
Framework: angular
--- CREATE ---
√ Download project (framework: Angular) — 100%
√ Unpack files to /flexmonster-angular-project
× Install dependencies (It may take a while)
→ npm ERR! C:\Users\yjo\AppData\Local\npm-cache\_logs\2021-06-09T19_41_06_162Z-debug.log
Run project
Command failed: npm install
npm ERR! code 1
npm ERR! path D:\cho\flexmonster-angular-project\node_modules\fibers
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node build.js || nodejs build.js
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@14.17.0 | win32 | x64
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: C:\Python39\python.exe -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack File "<string>", line 1
npm ERR! gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack ^
npm ERR! gyp ERR! stack SyntaxError: invalid syntax
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack at ChildProcess.exithandler (child_process.js:319:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:376:20)
npm ERR! gyp ERR! stack at maybeClose (internal/child_process.js:1055:16)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\cho\\flexmonster-angular-project\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release"
npm ERR! gyp ERR! cwd D:\cho\flexmonster-angular-project\node_modules\fibers
npm ERR! gyp ERR! node -v v14.17.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! node-gyp exited with code: 1
npm ERR! Please make sure you are using a supported platform and node version. If you
npm ERR! would like to compile fibers on this machine please make sure you have setup your
npm ERR! build environment--
npm ERR! Windows + OS X instructions here: https://github.com/nodejs/node-gyp
npm ERR! Ubuntu users please run: `sudo apt-get install g++ build-essential`
npm ERR! RHEL users please run: `yum install gcc-c++` and `yum groupinstall 'Development Tools'`
npm ERR! Alpine users please run: `sudo apk add python make g++`
npm ERR! 'nodejs' n'est pas reconnu en tant que commande interne
npm ERR! ou externe, un programme ex�cutable ou un fichier de commandes.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\yjo\AppData\Local\npm-cache\_logs\2021-06-09T19_41_06_162Z-debug.log
attached file
Hello,
Thank you for reaching out to us and for providing the log output.
Still, the issue is not reproducible on our end using the same node
, npm
, and flexmonster-cli
versions. According to the log output, this seems to be an issue with node-gyp
on Windows rather than the sample Angular project. Please see the following resource for more details on possible solutions: https://spin.atomicobject.com/2019/03/27/node-gyp-windows/.
Please let us know if this helps.
Looking forward to your reply.
Kind regards,
Vera
It works thank you !