PATH に `/usr/local/bin` を追加する

```

0 * * * * PATH=/usr/local/bin/:$PATH cd /home/pi/bin/vercel-nostr-posts && /usr/local/bin/npm run deploy > /dev/null 2>&1

```

エラーは変わらない

```

ERROR: npm v9.3.1 is known not to run on Node.js v12.22.12. You'll need to

upgrade to a newer Node.js version in order to use this version of npm. This

version of npm supports the following node versions: `^14.17.0 || ^16.13.0 ||

>=18.0.0`. You can find the latest version at https://nodejs.org/.

```

シェル変数 (`PATH=/usr/local/bin/:$PATH`) は子プロセスには受け渡されないため、うまくいかない

#NodeJS #RaspberryPi

Reply to this note

Please Login to reply.

Discussion

No replies yet.