簡體   English   中英

在我的項目中安裝時出現一些錯誤,gyp 錯誤代碼 1

[英]Getting some errors while doing install in my project,gyp error code 1

我在執行 npm 安裝時遇到這些錯誤,node v16.18

npm ERR! code 1
npm ERR! path /home/shammirbaig/Gitlab_LR_Frontend/admin-console-frontend/node_modules/lwip
npm ERR! command failed
npm ERR! command sh -c -- node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@16.18.1 | linux | x64
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack Error: Can't find Python executable "/usr/lib/python2.7", you can set the PYTHON env variable.
npm ERR! gyp ERR! stack     at PythonFinder.failNoPython (/home/shammirbaig/Gitlab_LR_Frontend/admin-console-frontend/node_modules/node-gyp/lib/configure.js:484:19)
npm ERR! gyp ERR! stack     at PythonFinder.<anonymous> (/home/shammirbaig/Gitlab_LR_Frontend/admin-console-frontend/node_modules/node-gyp/lib/configure.js:406:16)
npm ERR! gyp ERR! stack     at F (/home/shammirbaig/Gitlab_LR_Frontend/admin-console-frontend/node_modules/which/which.js:68:16)
npm ERR! gyp ERR! stack     at E (/home/shammirbaig/Gitlab_LR_Frontend/admin-console-frontend/node_modules/which/which.js:80:29)
npm ERR! gyp ERR! stack     at /home/shammirbaig/Gitlab_LR_Frontend/admin-console-frontend/node_modules/which/which.js:89:16
npm ERR! gyp ERR! stack     at /home/shammirbaig/Gitlab_LR_Frontend/admin-console-frontend/node_modules/isexe/index.js:42:5
npm ERR! gyp ERR! stack     at /home/shammirbaig/Gitlab_LR_Frontend/admin-console-frontend/node_modules/isexe/mode.js:8:5
npm ERR! gyp ERR! stack     at FSReqCallback.oncomplete (node:fs:203:5)
npm ERR! gyp ERR! System Linux 5.15.0-53-generic
npm ERR! gyp ERR! command "/home/shammirbaig/.nvm/versions/node/v16.18.1/bin/node" "/home/shammirbaig/Gitlab_LR_Frontend/admin-console-frontend/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/shammirbaig/Gitlab_LR_Frontend/admin-console-frontend/node_modules/lwip
npm ERR! gyp ERR! node -v v16.18.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok

我正在執行 npm 安裝並收到這些錯誤。 無法弄清楚到底發生了什么,或者我在這里真正想念的是什么。 我嘗試手動安裝 node-gyp。 完全令人沮喪

您需要安裝 Python。

下載 Python

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM