iliakan / iliakan/javascript-precommit
Not able to install it on Windows
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 6
- Forks
- 1
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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:
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Prüfung von package.json sowie der darin referenzierten Skripte bin/postinstall.js und bin/uninstall.js. Verifiziere, dass npm install und npm uninstall diese Skripte unter Windows erfolgreich ausführen, und bestätige, dass das bestehende Verhalten des precommit-Hooks unverändert bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, node.js
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 55/100