baileyherbert / utimes

🕓 Cross-platform native addon to change the btime, mtime, and atime of files in Node.js.
https://npmjs.com/utimes
MIT License
47 stars 6 forks source link

Unable install on Windows #29

Closed vanowm closed 9 months ago

vanowm commented 9 months ago

Getting this error:

> npm install utimes
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for inotify@1.4.6: wanted {"os":"linux"} (current: {"os":"win32"})
npm ERR! notsup Valid os:  linux
npm ERR! notsup Actual os: win32

NodeJS v21.5.0 Windows 10

baileyherbert commented 9 months ago

The package referenced in the error message (inotify@1.4.6) is unrelated to this package. I performed a fresh installation of this package on Windows 10 and inotify was not found in the lock file nor node_modules.

Most likely, you have another package in your project that is calling upon inotify, but hasn't been installed yet. Running npm install utimes will install all other remaining dependencies in the project as well.

vanowm commented 9 months ago

My mistake, I was using incorrect parameter: --save=dev instead of --save-dev