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
When husky installed and in package.jsonprepare: husky install script exists np crashes with
✖ SyntaxError: Unexpected token '>', "
> kirka@5."... is not valid JSON
at JSON.parse (<anonymous>)
at Module.getFilesToBePacked (file:///nix/store/zmmxxn34hc1dllqrd7qqid720gqzdjy7-np-9.2.0/lib/node_modules/np/source/npm/util.js:144:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Module.getNewFiles (file:///nix/store/zmmxxn34hc1dllqrd7qqid720gqzdjy7-np-9.2.0/lib/node_modules/np/source/util.js:103:23)
at async checkNewFilesAndDependencies (file:///nix/store/zmmxxn34hc1dllqrd7qqid720gqzdjy7-np-9.2.0/lib/node_modules/np/source/ui.js:81:19)
at async ui (file:///nix/store/zmmxxn34hc1dllqrd7qqid720gqzdjy7-np-9.2.0/lib/node_modules/np/source/ui.js:150:30)
at async file:///nix/store/zmmxxn34hc1dllqrd7qqid720gqzdjy7-np-9.2.0/lib/node_modules/np/source/cli-implementation.js:137:18
This is what is happening in stdout when running np
@voxpelli love the idea with output, but it's not crossplatform.
Seems like husky made something with debug output in v9. I'll check later if it really fixes the issue
Description
When husky installed and in
package.json
prepare: husky install
script exists np crashes withThis is what is happening in stdout when running np
Expected behavior
Should just work
Environment
np - 9.2.0
Node.js - 21.7.1
npm - 10.5.0
Git - 2.42
OS - nixos 23.10 (unstable branch)
The text was updated successfully, but these errors were encountered: