kentcdodds / cross-env

🔀 Cross platform setting of environment scripts

Home Page:https://www.npmjs.com/package/cross-env

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cross-env does not work under raspberry pi (arm32)

mmc41 opened this issue · comments

  • cross-env version: 6.0.3
  • node version: 12.10.0
  • npm (or yarn) version: npm 6.10.3

Relevant code or config
In package.json scripts:
"test": "cross-env LIBXTRACE=trace ts-node xxx.ts"

Problem description:
Error "cannot find module 'which' in internal/modules/cjs/loader.js:775

Hi @mmc41,

This library depends on cross-spawn which depends on which. If you're seeing that error my guess is that your dependencies were not installed properly.

Sorry, there's not much that's actionable about this issue, so I'm going to close it.

just tested using yarn instead of npm and here it works. So it must be a npm problem.