小编Ash*_*ade的帖子

此类错误出现:- 找不到模块“sharp”

Error: Cannot find module 'sharp'
  Require stack:
  - D:\Marketing\sbj-react\suburban\node_modules\gatsby-plugin-manifest\safe-sharp.js
  - D:\Marketing\sbj-react\suburban\node_modules\gatsby-plugin-manifest\gatsby-node.js
  - D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\bootstrap\resolve-module-exports.js
  - D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\bootstrap\load-plugins\validate.js
  - D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\bootstrap\load-plugins\load.js
  - D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\bootstrap\load-plugins\index.js
  - D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\bootstrap\index.js
  - D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\commands\develop.js
  - D:\Marketing\sbj-react\suburban\node_modules\gatsby-cli\lib\create-cli.js
  - D:\Marketing\sbj-react\suburban\node_modules\gatsby-cli\lib\index.js
  - D:\Marketing\sbj-react\suburban\node_modules\gatsby\dist\bin\gatsby.js
Run Code Online (Sandbox Code Playgroud)

1)npm install

2) npm 还检查npm install --unsafe perm

3)npm start

4)npm install sharp

但仍然有同样的问题,请解决我的问题。

这是我的 package.json

{
  "name": "Ashish",
  "description": "Ashish Group Project",
  "version": "1.0.0",
  "author": "AshishBhangade <ashishbhangade@gmail.com>",
  "dependencies": {
    "axios": "^0.18.0",
    "babel-plugin-styled-components": "^1.10.0",
    "base-64": "^0.1.0",
    "bcryptjs": "^2.4.3",
    "bootstrap": "^4.1.3",
    "gatsby": "^2.0.53",
    "gatsby-background-image": "^0.9.11",
    "gatsby-graphiql-explorer": "^0.2.29",
    "gatsby-image": …
Run Code Online (Sandbox Code Playgroud)

node.js reactjs gatsby

6
推荐指数
2
解决办法
2万
查看次数

antd表格如何固定第一行

我正在使用Ant Design 表组件。问题是,如何修复表的第一行?

表格插图

javascript reactjs antd

4
推荐指数
1
解决办法
9469
查看次数

标签 统计

reactjs ×2

antd ×1

gatsby ×1

javascript ×1

node.js ×1