iliakan / iliakan/javascript-precommit

Not able to install it on Windows

Đang mở
#1 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
JavaScript
Star
6
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When I tried to `npm install javasciprt-precommit`, it gave me an error:

```

> javascript-precommit@0.0.8 postinstall C:\gitlib\javascript-precommit
> ./bin/postinstall.js

'.' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! javascript-precommit@0.0.8 postinstall: `./bin/postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the javascript-precommit@0.0.8 postinstall script './bin/postinstall.js'.
npm ERR! This is most likely a problem with the javascript-precommit package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./bin/postinstall.js
npm ERR! You can get their info via:
npm ERR! npm owner ls javascript-precommit
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\gitlib\javascript-precommit\npm-debug.log
```

The chinese character in the error log above means '.' is not a valid command.

I could fix this by modify the package.json from

```
"scripts": {
"postinstall": "./bin/postinstall.js",
"uninstall": "./bin/uninstall.js"
},
```

to

```
"scripts": {
"postinstall": "node ./bin/postinstall.js",
"uninstall": "node ./bin/uninstall.js"
},
```

Could you please help fix this? Thanks for your great work :smile:

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách xem xét package.json và các script bin/postinstall.js và bin/uninstall.js được tham chiếu. Xác minh rằng npm install và npm uninstall gọi các script này thành công trên Windows, đồng thời xác nhận rằng hành vi hiện tại của hook precommit vẫn không thay đổi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript, node.js
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
55/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.