Thursday, 18 May 2017

npm script : What is $

I am new to NPM and inherited a project which has the following line

"compile:clean": "$(cd ..; npm bin)/rimraf lib",

This works fine on mac and ubuntu but on windows when I run

npm run compile

I get the following error

Error: Command failed: npm run compile
'$' is not recognized as an internal or external command,
operable program or batch file.

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "compile:clean"
npm ERR! node v6.10.2
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

What is $ or what package I need to install on windows to recognize $



via Greg

No comments:

Post a Comment