Npm 我怎样才能加上?’;vendor/lib/libvips.42.dylib”;“在路径中”;node#u modules/sharp/build/Release/../../“;?
如何将“vendor/lib/libvips.42.dylib”添加到路径“node_modules/sharp/build/Release/./../”? 我正在与盖茨比建立网站,我需要安装两个盖茨比插件Npm 我怎样才能加上?’;vendor/lib/libvips.42.dylib”;“在路径中”;node#u modules/sharp/build/Release/../../“;?,npm,gatsby,gatsby-plugin,Npm,Gatsby,Gatsby Plugin,如何将“vendor/lib/libvips.42.dylib”添加到路径“node_modules/sharp/build/Release/./../”? 我正在与盖茨比建立网站,我需要安装两个盖茨比插件 npm离线安装盖茨比插件 npm安装盖茨比插件清单 在成功安装它们之后,我在gatsby-config.js中为它们编写了设置,然后在终端中给出了“gatsby develope” success open and validate gatsby-configs - 0.050s ⠁ d
success open and validate gatsby-configs - 0.050s
⠁ dyld: lazy symbol binding failed: Symbol not found: _g_once_impl
Referenced from: /Users/home/Downloads/gatsbyjs-website/gatsbyjs-book-master/mysite/node_modules/gatsby-plugin-manifest/node_modules/sharp/build/Release/sharp.node
Expected in: /Users/home/Downloads/gatsbyjs-website/gatsbyjs-book-master/mysite/node_modules/sharp/build/Release/../../vendor/lib/libvips.42.dylib
dyld: Symbol not found: _g_once_impl
Referenced from: /Users/home/Downloads/gatsbyjs-website/gatsbyjs-book-master/mysite/node_modules/gatsby-plugin-manifest/node_modules/sharp/build/Release/sharp.node
Expected in: /Users/home/Downloads/gatsbyjs-website/gatsbyjs-book-master/mysite/node_modules/sharp/build/Release/../../vendor/lib/libvips.42.dylib
Killed: 9
根据这些错误,我似乎必须在路径“node_modules/sharp/build/Release/../”中添加“vendor/lib/libvips.42.dylib”
那么如何在路径“node_modules/sharp/build/Release/./../”中添加“vendor/lib/libvips.42.dylib”?
我的节点版本是11.13.0
到目前为止,我已经安装了插件
- 盖茨比·夏普
- 盖茨比变压器
- 盖茨比源文件系统
- 盖茨比直升机
- 盖茨比插件清单
- gastby插件离线
{
"name": "gatsby-starter-hello-world",
"private": true,
"description": "A simplified bare-bones starter for Gatsby",
"version": "0.1.0",
"license": "0BSD",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"start": "npm run develop",
"serve": "gatsby serve",
"clean": "gatsby clean",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.32",
"@fortawesome/free-brands-svg-icons": "^5.15.1",
"@fortawesome/free-solid-svg-icons": "^5.15.1",
"@fortawesome/react-fontawesome": "^0.1.12",
"gatsby": "^2.27.0",
"gatsby-image": "^2.5.0",
"gatsby-plugin-manifest": "^2.7.0",
"gatsby-plugin-offline": "^3.5.0",
"gatsby-plugin-react-helmet": "^3.5.0",
"gatsby-plugin-sharp": "^2.8.0",
"gatsby-source-filesystem": "^2.5.0",
"gatsby-transformer-sharp": "^2.6.0",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-helmet": "^6.1.0"
},
"devDependencies": {
"prettier": "2.1.2"
},
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby-starter-hello-world"
},
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
}
}
如果您能给我任何建议或帮助,我将不胜感激。
提前谢谢。通过安装所有依赖项和所有与sharp相关的库,问题已经解决。有关更多详细信息,请查看:您能否提供您的
gatsby config.js
?@FerranBuireu很抱歉回复晚。我找到了解决方案,需要使用依赖于“sharp”的项目安装所有插件.Reference=>()。谢谢!:)