Web 我无法获取该命令,该命令将帮助我在本地主机上运行网站
这里是package.jsonWeb 我无法获取该命令,该命令将帮助我在本地主机上运行网站,web,blockchain,ethereum,solidity,truffle,Web,Blockchain,Ethereum,Solidity,Truffle,这里是package.json { "name": "complete", "version": "1.0.0", "description": "Implemented an ethereum smart contract in Solidity to develop an online MarketPlace where people can buy, sell products, ask for a refund, check tr
{
"name": "complete",
"version": "1.0.0",
"description": "Implemented an ethereum smart contract in Solidity to develop an online MarketPlace
where people can buy, sell products, ask for a refund, check transaction status etc. The client side
pages are served by a Flask server.",
"main": "truffle-config.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
这里是错误
npm run test
> complete@1.0.0 test F:\complete
> echo "Error: no test specified" && exit 1
"Error: no test specified"
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! complete@1.0.0 test: `echo "Error: no test specified" && exit 1`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the complete@1.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HP\AppData\Roaming\npm-cache\_logs\2020-02-04T08_30_37_917Z-debug.log
必须在脚本字段中提供测试命令 我用摩卡咖啡做测试
"scripts": {
"test": "mocha"
}
我不知道我是否理解你的问题。。。但是试着运行这个命令:npm run start我们已经尝试过这个命令,但是仍然显示了相同的问题请查看错误您知道如何解决这些错误。