You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2021. It is now read-only.
"scripts": {
"preinstall": "cross-env modarch=\"node -e console.log(process.arch)\" npm run install",
"install": "cross-env-shell echo The variable content is $modarch",
What you did:
npm install
What happened:
The command printed the following output:
The variable content is node -e console.log(process.arch)
The expected output was:
The variable content is x64
or
The variable content is ia32
Problem description:
Instead of the command output the variable is filled with the command itself ("node -e console.log(process.arch)"). Removing the double-quotes gives syntax error.
The command runs just fine if a space character is put after "modarch=" but of course the result is never assigned to modarch.