blomqma / next-rest-framework

Type-safe, self-documenting APIs for Next.js
https://next-rest-framework.vercel.app
Other
155 stars 20 forks source link

preinstall script failing #93

Closed cosigyn closed 11 months ago

cosigyn commented 11 months ago
PS C:\Users\REDACTED_USER\Documents\Clanware\clanware-api> npm install --save next-rest-framework
npm ERR! code 1
npm ERR! path C:\Users\REDACTED_USER\Documents\Clanware\clanware-api\node_modules\next-rest-framework
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c mkdir -p dist && touch ./dist/cli.js && echo "#!/usr/bin/env node" > ./dist/cli.js
npm ERR! A subdirectory or file dist already exists.
npm ERR! Error occurred while processing: dist.

npm ERR! A complete log of this run can be found in: C:\Users\REDACTED_USER\AppData\Local\npm-cache\_logs\2023-11-04T14_05_42_556Z-debug-0.log

Full log: 2023-11-04T14_05_42_556Z-debug-0.log

cosigyn commented 11 months ago

Works in WSL with Ubuntu, but not on windows.

blomqma commented 11 months ago

Thanks, the preinstall step containing the UNIX-specific commands is actually no longer needed. This fix has been now introduced in v3.4.2 so upgrading to that version should address your issue.

cosigyn commented 11 months ago

Thanks!