Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

"The syntax of the command is incorrect" error #6

Open
ajitgoel opened this issue Feb 26, 2018 · 1 comment
Open

"The syntax of the command is incorrect" error #6

ajitgoel opened this issue Feb 26, 2018 · 1 comment

Comments

@ajitgoel
Copy link

I get a "The syntax of the command is incorrect". any ideas what i am doing wrong?

wpshout-react-quiz@1.0.0 concat:js C:\wamp64\www\wordpress\wp-content\plugins\wpshout-react-quiz
> mkdir -p dist/js && concat -o dist/js/scripts.js 1.js 2.js
The syntax of the command is incorrect.

{
  "name": "wpshout-react-quiz",
  "version": "1.0.0",
  "description": "",
  "main": "wpshout-react-quiz.js",
  "dependencies": {
    "concat": "^1.0.3",
    "npm-run-all": "^4.1.2",
    "onchange": "^3.3.0",
    "react": "^16.2.0",
    "react-dom": "^16.2.0",
    "react-image-lightbox": "^4.5.0",
    "react-slick": "^0.19.0",
    "uglify": "^0.1.5",
    "watch": "^1.0.2"
  },
  "devDependencies": {},
  "scripts": {
    "concat:js": "mkdir -p dist/js && concat -o dist/js/scripts.js 1.js 2.js",
    "concat": "npm run concat:js",
    "uglify": "uglifyjs -o dist/js/scripts.min.js dist/js/scripts.js",
    "build:js": "npm run concat:js && npm run uglify",
    "build": "npm run build:js",
    "watch": "watch 'npm run build' node_modules/react/umd/ node_modules/react-dom/umd/ node_modules/react-slick/lib/mixins/ node_modules/react-slick/lib/utils/ node_modules/react-slick/lib/ node_modules/react-slick/dist/"
  },
  "author": "",
  "license": "ISC"
}

@Neospiro
Copy link

Neospiro commented Dec 19, 2019

I know this issue is old, but if someone have a similar problem, here is a solution : look at your spaces !

I found " " U+00A0 | NO-BREAK SPACE in my command lines. I think it comes from an example command about this module, somewhere on internet.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants