You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:1020377) ExperimentalWarning: CommonJS module /usr/local/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /usr/local/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support forloading ES Moduleinrequire() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
npm error code 127
npm error path /tmp/husky-breaks-npm-i/foo
npm error command failed
npm error command sh -c husky
npm error sh: line 1: husky: command not found
npm error A complete log of this run can be found in: /home/user/.npm/_logs/2024-12-11T19_27_05_101Z-debug-0.log
[user@computer husky-breaks-npm-i]$ tree
.
├── bar
│ └── package.json
└── foo
└── package.json
The text was updated successfully, but these errors were encountered:
Assuming [email protected], Linux and bash.
mkdir foo
cd foo/
npm init -y
cd ..
mkdir bar
cd bar
npm init -y
cd ../foo
npx husky init
cd ../bar
npm i ../foo
with
npm i ../foo
yielding:[user@computer husky-breaks-npm-i]$ tree . ├── bar │ └── package.json └── foo └── package.json
The text was updated successfully, but these errors were encountered: