Problem installing npm package #323
-
|
I'm getting the following error after being prompted to install an npm package and confirming to install: It seems the package is not installed properly? The script content is this: const { clipboard } = await npm("@nut-tree/nut-js");
await clipboard.paste();Is there a fix for it, or a workaround I didn't spot yet? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi @JoepKockelkorn , I found this issue on the nut-js repo: nut-tree/nut.js#223 The "solution" was to downgrade to node 15, which isn't really an option (Kit is on node 16/npm 7). I'm out of town this weekend, so can't really dig into this until next week at my home computer. I guess you could try installing node 15 then manually install in the terminal like so: cd ~/.kenv
/wherever/node/15/is/bin/npm i @nut-tree/nut-jsThen use const { clipboard } = await import("@nut-tree/nut-js");
await clipboard.paste();That might work. I'll dig in deeper next week. |
Beta Was this translation helpful? Give feedback.
Hi @JoepKockelkorn ,
I found this issue on the nut-js repo: nut-tree/nut.js#223
The "solution" was to downgrade to node 15, which isn't really an option (Kit is on node 16/npm 7).
I'm out of town this weekend, so can't really dig into this until next week at my home computer. I guess you could try installing node 15 then manually install in the terminal like so:
Then use
importinstead ofnpm:That might work. I'll dig in deeper next week.