小编Aya*_*aka的帖子

安装“sharp”模块时出错

我已经按照错误所说的做了。然后我把锐器取下来,npm install --ignore-scripts=false --verbose但它仍然不起作用。

我也尝试过:

rimraf node_modules 
rimraf yarn.lock 
yarn
Run Code Online (Sandbox Code Playgroud)

这里可能出现什么问题?

npm:6.13.4

节点:v10.18.0

蟒蛇:3.7.0

锐利:^0.26.2

Windows 10 专业版 64 位

!  Error: 
Something went wrong installing the "sharp" module      

\\?\C:\Users\ph2200009\Desktop\TM\cplus_incident_mgnt\functions\node_modules\sharp\build\Release\sharp.node is not a valid Win32 application.
\\?\C:\Users\ph2200009\Desktop\TM\cplus_incident_mgnt\functions\node_modules\sharp\build\Release\sharp.node     

- Remove the "node_modules/sharp" directory then run    
  "npm install --ignore-scripts=false --verbose" and look for errors

at Object.<anonymous> (C:\Users\ph2200009\Desktop\TM\cplus_incident_mgnt\functions\node_modules\sharp\lib\constructor.js:34:9)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)  
    at Object.<anonymous> …
Run Code Online (Sandbox Code Playgroud)

reactjs npm-install sharp

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

标签 统计

npm-install ×1

reactjs ×1

sharp ×1