0
我試圖運行electron-rebuild sharp
,以便我可以使用電子中的sharp封裝。爲電子重新編譯「尖銳」
我也需要有nodemon包,當我有這兩個包安裝,我得到以下錯誤:
electron-rebuild searching for .node file /home/derek/projects/fsevents-test/node_modules/fsevents/build/Release +3ms
electron-rebuild testing files [ '.deps', '.forge-meta', '.node', 'obj.target' ] +1ms
✖ Rebuild Failed
An unhandled error occurred inside electron-rebuild
Path must be a string. Received undefined
TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.resolve (path.js:1167:7)
at Rebuilder.<anonymous> (/home/derek/projects/realfood/node_modules/electron-rebuild/lib/src/rebuild.js:151:35)
at Generator.next (<anonymous>)
at fulfilled (/home/derek/projects/realfood/node_modules/electron-rebuild/lib/src/rebuild.js:4:58)
at <anonymous>
如果我再次運行該命令,則不會發生這種錯誤,並且包裝重建我可以使用它。
它看起來像是要做fsevents - 我在Linux上,所以不應該使用。
任何想法我做錯了什麼? 使用節點8.1.2和npm 5.0.3