Open amirgb11 opened 5 years ago
try editing the package.json in front of ./node_module write node ./node_modules look my file
{ "name": "votechain-node", "version": "0.0.0", "private": true, "scripts": { "start": "node ./node_modules/nodemon/bin/nodemon.js --inspect index.js", "test": "./node_modules/mocha/bin/mocha tests/index.js --require babel-register --reporter mochawesome --timeout 30000 || exit ##0", "testrpc": "node_modules/ethereumjs-testrpc/build/cli.node.js" }, "dependencies": { "body-parser": "~1.17.1", "chai": "^4.1.2", "chai-http": "^4.0.0", "cookie-parser": "^1.4.5", "debug": "~2.6.3", "ejs": "^2.5.7", "ethereumjs-testrpc": "^4.1.3", "express": "^4.15.5", "express-unless": "^0.5.0", "git": "^0.1.5", "jimp": "^0.2.28", "jpeg-camera-es6": "^1.0.12", "jsonwebtoken": "^8.2.0", "mocha": "^5.0.5", "mochawesome": "^3.0.2", "mongoose": "^5.9.10", "morgan": "^1.8.2", "multer": "^1.3.0", "qrcode": "^1.2.0", "qrcode-reader": "^1.0.4", "request": "^2.85.0", "serve-favicon": "^2.4.5", "solc": "^0.4.26", "web3": "^0.20.7" }, "devDependencies": { "babel-cli": "^6.26.0", "babel-core": "^6.26.3", "babel-polyfill": "^6.26.0", "babel-preset-es2015": "^6.24.1", "nodemon": "^1.19.4" } }
I am trying to execute the index.js with "npm run test" command. on the package.json the test field is : " "test": "./node_modules/mocha/bin/mocha tests/index.js --require babel-register --reporter mochawesome --timeout 30000 || exit 0", "
when i run this command , i receive this error : " '.' is not recognized as an internal or external command, operable program or batch file. "
what is the problem ???