Get Free Trial

flexmonster create angular -r ERROR

bernard dradeou asked on June 9, 2021

Hi there,
         “flexmonster create angular -r” generates an error. I have upgraded to the last version of flexmonster.
          Here are some info :

      • windows 10
      • node
        Welcome to Node.js v14.17.0.
      • node -v
      • python –version
        Python 3.9.5
      • flexmonster –version
      • npm version
        npm: ‘7.16.0’,
        node: ‘14.17.0’,
        v8: ‘8.4.371.23-node.63’,
        uv: ‘1.41.0’,
        zlib: ‘1.2.11’,
        brotli: ‘1.0.9’,
        ares: ‘1.17.1’,
        modules: ’83’,
        nghttp2: ‘1.42.0’,
        napi: ‘8’,
        llhttp: ‘2.1.3’,
        openssl: ‘1.1.1k’,
        cldr: ‘38.1’,
        icu: ‘68.2’,
        tz: ‘2020d’,
        unicode: ‘13.0’

Framework: angular
√ 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:
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

3 answers

bernard dradeou June 9, 2021

attached file

Vera Didenko Vera Didenko Flexmonster June 10, 2021

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:
Please let us know if this helps.
Looking forward to your reply. 
Kind regards,

bernard dradeou June 10, 2021

It works thank you !

Please login or Register to Submit Answer