小编Koz*_*221的帖子

我无法使用 npm 安装Sharp

我无法使用sudo npm install sharp.

终端输出:

sharp@0.23.1 install /Users/kozakiewicz/node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (节点gyp重建&&节点安装/dll-copy)

info sharp Using cached /Users/kozakiewicz/.npm/_libvips/libvips-8.8.1-darwin-x64.tar.gz
ERR! sharp EACCES: permission denied, mkdir '/Users/kozakiewicz/node_modules/sharp/vendor'
info sharp Attempting to build from source via node-gyp but this may fail due to the above error
info sharp Please see https://sharp.pixelplumbing.com/page/install for required dependencies
gyp ERR! configure error 
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/kozakiewicz/node_modules/sharp/build'
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" …
Run Code Online (Sandbox Code Playgroud)

node.js sharp

6
推荐指数
1
解决办法
7076
查看次数

标签 统计

node.js ×1

sharp ×1