我遇到了一個我不知道如何解決的問題。我在 Windows 上使用 WebStorm。我已經安裝了 Makefile Language 插件來自動啟動命令
install:
npm ci
brain-games:
node bin/brain-games.js
publish:
npm publish --dry-run
lint:
npx eslint
但我不能這樣做,它回傳錯誤
C:\ProgramData\chocolatey\bin\make.exe -f *way-to-the-project*/Makefile publish
process_begin: CreateProcess(NULL, npm publish --dry-run, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [*way-to-the-project*/Makefile:6: publish] Error 2
我嘗試使用 Microsoft Store 中的 Powershell 和 Ubuntu 運行“make”命令,它運行良好,我只是不明白插件有什么問題以及如何正確使用它。
請幫我提供任何建議:)
uj5u.com熱心網友回復:
如果您在 Windows 上使用 WebStorm 并嘗試運行 Makefile 時遇到此類問題,請確保在 IDE 中您沒有選中Add 'node_modules/.bin' from the project root to %PATH%File -> Settings -> Tools -> Terminal中的選項。
也許它會為你節省幾個小時:)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/420744.html
標籤:
