添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Hi Openboxes team,

May you share if we are able to debug openboxes in Apache Netbeans?
In my Mac, already have npm install and also got error Unsupport Engine error.

Do I need to downgrade my node and npm required by below error message?

“/bin/bash” “-lc” “”/usr/local/bin/npm" “install”"
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: ‘[email protected]’,
npm WARN EBADENGINE required: { npm: ‘6.14.6’, node: ‘13.11.0’ },
npm WARN EBADENGINE current: { node: ‘v15.14.0’, npm: ‘7.7.6’ }
npm WARN EBADENGINE }

Thanks,

========
npm ERR! code 1
npm ERR! path /Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/node-sass
npm ERR! command failed
npm ERR! command sh -c node scripts/build.js
npm ERR! Building: /usr/local/bin/node /Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli ‘/usr/local/bin/node’,
npm ERR! gyp verb cli ‘/Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/node-gyp/bin/node-gyp.js’,
npm ERR! gyp verb cli ‘rebuild’,
npm ERR! gyp verb cli ‘–verbose’,
npm ERR! gyp verb cli ‘–libsass_ext=’,
npm ERR! gyp verb cli ‘–libsass_cflags=’,
npm ERR! gyp verb cli ‘–libsass_ldflags=’,
npm ERR! gyp verb cli ‘–libsass_library=’
npm ERR! gyp verb cli ]
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | darwin | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing “build” directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable “python2” in the PATH
npm ERR! gyp verb which failed Error: not found: python2
npm ERR! gyp verb which failed at getNotFoundError (/Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/which/which.js:13:12)
npm ERR! gyp verb which failed at F (/Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/which/which.js:68:19)
npm ERR! gyp verb which failed at E (/Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/which/which.js:80:29)
npm ERR! gyp verb which failed at /Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/which/which.js:89:16
npm ERR! gyp verb which failed at /Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/isexe/index.js:42:5
npm ERR! gyp verb which failed at /Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/isexe/mode.js:8:5
npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:193:21)
npm ERR! gyp verb which failed python2 Error: not found: python2
npm ERR! gyp verb which failed at getNotFoundError (/Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/which/which.js:13:12)
npm ERR! gyp verb which failed at F (/Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/which/which.js:68:19)
npm ERR! gyp verb which failed at E (/Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/which/which.js:80:29)
npm ERR! gyp verb which failed at /Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/which/which.js:89:16
npm ERR! gyp verb which failed at /Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/isexe/index.js:42:5
npm ERR! gyp verb which failed at /Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/isexe/mode.js:8:5
npm ERR! gyp verb which failed at FSReqCallback.oncomplete (node:fs:193:21) {
npm ERR! gyp verb which failed code: ‘ENOENT’
npm ERR! gyp verb which failed }
npm ERR! gyp verb check python checking for Python executable “python” in the PATH
npm ERR! gyp verb which succeeded python /Users/macbookpro/opt/anaconda3/bin/python
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: /Users/macbookpro/opt/anaconda3/bin/python -c import sys; print “%s.%s.%s” % sys.version_info[:3];
npm ERR! gyp ERR! stack File “”, 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 (node:child_process:326:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:369:20)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1067:16)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
npm ERR! gyp ERR! System Darwin 21.5.0
npm ERR! gyp ERR! command “/usr/local/bin/node” “/Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
npm ERR! gyp ERR! cwd /Users/macbookpro/Downloads/openboxes-0.8.16-hotfix3/node_modules/node-sass
npm ERR! gyp ERR! node -v v15.14.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/macbookpro/.npm/_logs/2022-05-19T03_55_48_731Z-debug.log

Thanks,

I’m not an expert with npm / node so I don’t really know, but my assumption is that this is just a warning that you can ignore.

I’m current using the following versions.

$ node --version
v14.17.5
$ npm --version
6.14.14

And for what it’s worth I use NVM (GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions) to switch between different node / npm versions.

As for the more detailed log, I have no idea. It seems like an issue with python :confused: which we don’t use. So that must be a specific node-gyp.

I searched for related issues in GitHub and found the following. Take a look at those and see if there’s anything useful. in there.

github.com/nodejs/node-gyp ernestscomputer:musicomp ernest son$ npm install > [email protected] install