-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Current Behavior
npm install git+https://github.com/ryansonshine/typescript-npm-package-template.git --save
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /Users/twer/.nodenv/versions/16.14.0/bin/node /Users/twer/.nodenv/versions/16.14.0/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/Users/twer/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! > [email protected] prepare
npm ERR! > husky install
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! /Users/twer/.npm/_cacache/tmp/git-cloneOYQ4At/node_modules/husky/lib/index.js:20
npm ERR! throw new Error(`.git can't be found (see ${url})`);
npm ERR! ^
npm ERR!
npm ERR! Error: .git can't be found (see https://typicode.github.io/husky/#/?id=custom-directory)
npm ERR! at Object.install (/Users/twer/.npm/_cacache/tmp/git-cloneOYQ4At/node_modules/husky/lib/index.js:20:15)
npm ERR! at Object.install (/Users/twer/.npm/_cacache/tmp/git-cloneOYQ4At/node_modules/husky/lib/bin.js:27:41)
npm ERR! at Object.<anonymous> (/Users/twer/.npm/_cacache/tmp/git-cloneOYQ4At/node_modules/husky/lib/bin.js:39:22)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1103:14)
npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:981:32)
npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:822:12)
npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
npm ERR! at node:internal/main/run_main_module:17:47
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /Users/twer/.npm/_cacache/tmp/git-cloneOYQ4At
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c husky install
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /Users/twer/.npm/_logs/2023-01-16T06_57_20_298Z-debug-0.log
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/twer/.npm/_logs/2023-01-16T06_57_15_899Z-debug-0.log
Expected Behavior
No error. The library should be built during postinstall
script.
Steps to Reproduce the Problem
npm install git+https://github.com/ryansonshine/typescript-npm-package-template.git --save
Environment
- Version: 1.1.9
- Platform: Mac
- Node.js Version: 18.13.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working