Migration tutorial fails without python2
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- nodejs, python
- Lĩnh vực
- build-system
Hướng nghiên cứu
Start with package-lock.json and the node-microtime installation path shown in the npm install output; inspect why [email protected] invokes Python 2 syntax. Reproduce the migration tutorial with Node.js 20 and Python 3.9, then verify that npm install completes without requiring Python 2.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The system I'm using only has python 3.9.18 installed. Running 'npm install' fails as follows:
$ npm install
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
> [email protected] install
> prebuild-install || node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp ERR! configure error
gyp ERR! stack Error: Command failed: /usr/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (node:child_process:422:12)
gyp ERR! stack at ChildProcess.emit (node:events:518:28)
gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
gyp ERR! System Linux 5.14.0-362.8.1.el9_3.x86_64
gyp ERR! command "/usr/local/nodejs/node-v20.11/bin/node" ".../node-microtime/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd .../node-microtime
gyp ERR! node -v v20.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code 1
npm ERR! path .../node-microtime
npm ERR! command failed
npm ERR! command sh -c prebuild-install || node-gyp rebuild
The issue seems to be that [email protected] ends up in package-lock.json, which issues the python print statement without parentheses.
Is there a way around this without installing python2? Thanks.
- Ngôn ngữ chính
- C++
- Star
- 2.6k
- Fork
- 598
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nodejs/node-addon-examples
-
Create Valgrind run of testsĐang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
nodejs/node-addon-examples#585 · 1 reaction ·
-
Add .d.ts files in samples.Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
nodejs/node-addon-examples#530 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
nodejs/node-addon-examples#445 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 32/100
nodejs/node-addon-examples#444 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
nodejs/node-addon-examples#380 · 2 bình luận ·
Tất cả issue của nodejs/node-addon-examples
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-score/lifecycle#929 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
colbymchenry/codegraph#3223 ·
Maintainer thường phản hồi trong vòng 1 ngày