We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
通过pm2 deploy方式在服务器上部署服务,执行npm install的时候提示这个错误。 之前也尝试过在heroku上部署这一服务,也是在执行到npm install的时候发生了这一错误。
npm ERR! code 1 npm ERR! path /www/wwwroot/yazi/source/node_modules/@pipcook/boa npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@14.17.6 | linux | x64 npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/www/server/nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/www/wwwroot/yazi/source/node_modules/@pipcook/boa/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/www/server/nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/root/.cache/node-gyp/14.17.6/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/14.17.6', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/www/server/nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/14.17.6/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/www/wwwroot/yazi/source/node_modules/@pipcook/boa', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! internal/fs/utils.js:314 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: ENOENT: no such file or directory, open '/www/wwwroot/yazi/source/node_modules/@pipcook/boa/.CONDA_INSTALL_DIR' npm ERR! at Object.openSync (fs.js:498:3) npm ERR! at Object.readFileSync (fs.js:394:35) npm ERR! at Object.getCondaPath (/www/wwwroot/yazi/source/node_modules/@pipcook/boa/tools/utils.js:31:23) npm ERR! at Object.getPythonHeaderPath (/www/wwwroot/yazi/source/node_modules/@pipcook/boa/tools/utils.js:43:18) npm ERR! at [eval]:1:26 npm ERR! at Script.runInThisContext (vm.js:134:12) npm ERR! at Object.runInThisContext (vm.js:310:38) npm ERR! at internal/process/execution.js:81:19 npm ERR! at [eval]-wrapper:6:22 npm ERR! at evalScript (internal/process/execution.js:80:60) { npm ERR! errno: -2, npm ERR! syscall: 'open', npm ERR! code: 'ENOENT', npm ERR! path: '/www/wwwroot/yazi/source/node_modules/@pipcook/boa/.CONDA_INSTALL_DIR' npm ERR! } npm ERR! gyp: Call to 'node -p "require('./tools/utils').getPythonHeaderPath()"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: gyp failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/www/server/nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16) npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:400:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) npm ERR! gyp ERR! System Linux 5.11.0-1017-gcp npm ERR! gyp ERR! command "/www/server/nvm/versions/node/v14.17.6/bin/node" "/www/server/nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /www/wwwroot/yazi/source/node_modules/@pipcook/boa npm ERR! gyp ERR! node -v v14.17.6 npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! gyp ERR! not ok
gyp
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-09-04T06_01_55_284Z-debug.log
post-deploy hook failed
Deploy failed Deploy failed with exit code: 1
The text was updated successfully, but these errors were encountered:
解决问题了。
Sorry, something went wrong.
请问怎么解决的
No branches or pull requests
通过pm2 deploy方式在服务器上部署服务,执行npm install的时候提示这个错误。
之前也尝试过在heroku上部署这一服务,也是在执行到npm install的时候发生了这一错误。
npm ERR! code 1
npm ERR! path /www/wwwroot/yazi/source/node_modules/@pipcook/boa
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@7.1.2
npm ERR! gyp info using node@14.17.6 | linux | x64
npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/www/server/nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/www/wwwroot/yazi/source/node_modules/@pipcook/boa/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/www/server/nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/root/.cache/node-gyp/14.17.6/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/14.17.6',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/www/server/nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/14.17.6/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/www/wwwroot/yazi/source/node_modules/@pipcook/boa',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! internal/fs/utils.js:314
npm ERR! throw err;
npm ERR! ^
npm ERR!
npm ERR! Error: ENOENT: no such file or directory, open '/www/wwwroot/yazi/source/node_modules/@pipcook/boa/.CONDA_INSTALL_DIR'
npm ERR! at Object.openSync (fs.js:498:3)
npm ERR! at Object.readFileSync (fs.js:394:35)
npm ERR! at Object.getCondaPath (/www/wwwroot/yazi/source/node_modules/@pipcook/boa/tools/utils.js:31:23)
npm ERR! at Object.getPythonHeaderPath (/www/wwwroot/yazi/source/node_modules/@pipcook/boa/tools/utils.js:43:18)
npm ERR! at [eval]:1:26
npm ERR! at Script.runInThisContext (vm.js:134:12)
npm ERR! at Object.runInThisContext (vm.js:310:38)
npm ERR! at internal/process/execution.js:81:19
npm ERR! at [eval]-wrapper:6:22
npm ERR! at evalScript (internal/process/execution.js:80:60) {
npm ERR! errno: -2,
npm ERR! syscall: 'open',
npm ERR! code: 'ENOENT',
npm ERR! path: '/www/wwwroot/yazi/source/node_modules/@pipcook/boa/.CONDA_INSTALL_DIR'
npm ERR! }
npm ERR! gyp: Call to 'node -p "require('./tools/utils').getPythonHeaderPath()"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error:
gyp
failed with exit code: 1npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/www/server/nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:400:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Linux 5.11.0-1017-gcp
npm ERR! gyp ERR! command "/www/server/nvm/versions/node/v14.17.6/bin/node" "/www/server/nvm/versions/node/v14.17.6/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /www/wwwroot/yazi/source/node_modules/@pipcook/boa
npm ERR! gyp ERR! node -v v14.17.6
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-09-04T06_01_55_284Z-debug.log
post-deploy hook failed
Deploy failed
Deploy failed with exit code: 1
The text was updated successfully, but these errors were encountered: