reactjs-basics icon indicating copy to clipboard operation
reactjs-basics copied to clipboard

The syntax of the command is incorrect.

Open Ronny9313 opened this issue 7 years ago • 7 comments

error

I am getting the following error when using the "copy" command while running on windows. Please suggest, I've tried all the alternatives mentioned everywhere.

Ronny9313 avatar Dec 17 '17 22:12 Ronny9313

I ran the "npm install copyfiles -g" and "npm install --save copy" commands and then changed the line in the package.json to" "build": "webpack -d && copyfiles src/index.html dist/index.html && webpack-dev-server --content-base src/ --inline --hot",

and it worked for me.
good luck

PaulCReardon avatar Dec 28 '17 20:12 PaulCReardon

having this error in console capture1

aneeba avatar Apr 06 '18 22:04 aneeba

@Ronny9313 Use the backward slashes(\) instead of forward slashes(/) because you are using windows. In windows file system uses backward slashes. Hope it works if not let me know.

nitinprajapati avatar Aug 04 '18 08:08 nitinprajapati

@aneeba use type attribute in script tag as type="javascript". I hope it works if no let me know.

nitinprajapati avatar Aug 04 '18 08:08 nitinprajapati

@nitinprajapati thanks! your suggestion works. I'm running ReactJS on Windows 10 and the fixed code line looks like this. "build": "webpack -d && copy src\index.html dist\index.html && webpack-dev-server --content-base src\ --inline --hot",

SethJimenez avatar Jun 03 '19 17:06 SethJimenez

Capture

i am getting the error: the syntax of the command is incorrect. in windows 10 while using getpapers kindly help me out

kareenasingh avatar May 21 '20 11:05 kareenasingh

@kareenasingh Can you tell me what it is getpapers? Or set the context in what sense you are asking.

nitinprajapati avatar May 21 '20 12:05 nitinprajapati