You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/03/08 14:17:32 UTC

[GitHub] [skywalking] tankilo edited a comment on issue #4463: Failed to compile module apm-webapp on win10

tankilo edited a comment on issue #4463: Failed to compile module apm-webapp on win10
URL: https://github.com/apache/skywalking/issues/4463#issuecomment-596210392
 
 
   **There are really something missing!**
   The previous error can be ignored, because maven produces error, then i directly execute 'cnpm install' in directory `skywalking-ui` and i finally forget to clean node moudles before executing mvn again, so it's not an original error.
   
   **This time, I clean everything and get the initial error.**
   **If anyone got the following error.**
   ```
   [INFO] > node-sass@4.11.0 postinstall C:\XXX\skywalking\skywalking-ui\node_modules\node-sass
   [INFO] > node scripts/build.js
   
   [ERROR] gyp verb check python checking for Python executable "python2" in the PATH
   [ERROR] gyp verb `which` failed Error: not found: python2
   [ERROR] gyp verb `which` failed     at getNotFoundError (C:\XXX\skywalking\skywalking-ui\node_modules\which\which.js:13:12)
   [ERROR] gyp verb `which` failed     at F (C:\XXX\skywalking\skywalking-ui\node_modules\which\which.js:68:19)
   [ERROR] gyp verb `which` failed     at E (C:\XXX\skywalking\skywalking-ui\node_modules\which\which.js:80:29)
   [ERROR] gyp verb `which` failed     at C:\XXX\skywalking\skywalking-ui\node_modules\which\which.js:89:16
   [ERROR] gyp verb `which` failed     at C:\XXX\skywalking\skywalking-ui\node_modules\isexe\index.js:42:5
   [ERROR] gyp verb `which` failed     at C:\XXX\skywalking\skywalking-ui\node_modules\isexe\windows.js:36:5
   [ERROR] gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)
   
   [ERROR] gyp verb `which` failed   code: 'ENOENT' }
   [ERROR] gyp verb check python checking for Python executable "python" in the PATH
   [ERROR] gyp verb `which` succeeded python C:\Users\XXX\AppData\Local\Programs\Python\Python37\python.EXE
   [ERROR] gyp ERR! configure error 
   [ERROR] gyp ERR! stack Error: Command failed: C:\Users\XXX\AppData\Local\Programs\Python\Python37\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
   [ERROR] gyp ERR! stack   File "<string>", line 1
   [ERROR] gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
   [ERROR] gyp ERR! stack                                ^
   [ERROR] gyp ERR! stack SyntaxError: invalid syntax
   [ERROR] gyp ERR! stack 
   [ERROR] gyp ERR! stack     at ChildProcess.exithandler (child_process.js:275:12)
   [ERROR] gyp ERR! stack     at emitTwo (events.js:126:13)
   [ERROR] gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
   [ERROR] gyp ERR! stack     at maybeClose (internal/child_process.js:925:16)
   [ERROR] gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
   [ERROR] gyp ERR! System Windows_NT 10.0.17134
   ```
   
   **You need to install python version 2.x and add 'python2' to PATH.**
   
   [Python2,Python3环境及安装(windows、linux)](https://www.cnblogs.com/yunlong-hao/p/10939698.html)
   
   ```
   [INFO] server-starter-es7 ................................. SUCCESS [ 11.352 s]
   [INFO] apm-webapp ......................................... SUCCESS [14:27 min]
   [INFO] apache-skywalking-apm .............................. SUCCESS [01:27 min]
   [INFO] apache-skywalking-apm-es7 .......................... SUCCESS [01:25 min]
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD SUCCESS
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 24:32 min
   [INFO] Finished at: 2020-03-08T22:05:37+08:00
   [INFO] Final Memory: 209M/1714M
   [INFO] ------------------------------------------------------------------------
   ```
   
   The only change i made to code is replacing `<arguments>install --registry=https://registry.npmjs.org/</arguments>` with `<arguments>install --registry=https://registry.npm.taobao.org/</arguments>`, i think this error will happen too if don't change the code.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services