小编Raf*_*art的帖子

将 Node Js API REST 部署到 CPANEL 时如何修复二进制错误。(共享主机)

首先感谢您的帮助。

我有一个 Node js API REST,我使用 Express、fs 模块、sharp for images 和许多其他模块,在我的机器上一切正常,我想在几个月前购买的共享主机中测试这个 API。

我的文件夹中有我的应用程序,节点 js 从 CPANEL 创建应用程序识别我的 JSON 文件,当我单击 NPM INSTALL 时,出现以下错误:

npm WARN lifecycle The node binary used for scripts is /home/webfoqgo/nodevenv/server/12/bin/node but npm is using /opt/alt/alt-nodejs12/root/usr/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
ERR! sharp Use with glibc 2.12 requires manual installation of libvips >= 8.10.0
info sharp Attempting to build from source via node-gyp but this may …
Run Code Online (Sandbox Code Playgroud)

shared-hosting cpanel node.js dev-to-production npm

6
推荐指数
0
解决办法
2336
查看次数

标签 统计

cpanel ×1

dev-to-production ×1

node.js ×1

npm ×1

shared-hosting ×1