maple3142 / maple3142/httpsrv

运行安装命令,遇错

未關閉
#2 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
JavaScript
星號
1
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

hi.

root@p1601860745:~# npm i -g httpsrv
[ .........] / idealTree: timing idealTree Completed in 19449ms

npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated babel-preset-es2015@6.24.1: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 127
npm ERR! path /root/node-v16.3.0-linux-x64/lib/node_modules/httpsrv/node_modules/core-js
npm ERR! command failed
npm ERR! command sh -c node -e "try{require('./postinstall')}catch(e){}"
npm ERR! sh: node: command not found

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-07-10T15_35_01_922Z-debug.log
root@p1601860745:~#

怎么解决?

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先檢查回報的 npm 命令、Node.js 16.3.0 環境,以及 /root/.npm/_logs/2021-07-10T15_35_01_922Z-debug.log 中的 npm 偵錯記錄。調查為什麼 core-js 的 postinstall 命令在嘗試安裝後仍回報 "node: command not found"。確認原因,並讓 npm i -g httpsrv 成功完成,或找出必要的專案變更,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript, nodejs
領域
cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
20/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。