我无法获得应该帮助我在本地主机上运行网站的命令

问题描述 投票:0回答:1

这里是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 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 

> [email protected] test F:\complete
> echo "Error: no test specified" && exit 1

"Error: no test specified"
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test: `echo "Error: no test specified" && exit 1`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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
web blockchain ethereum solidity truffle
1个回答
0
投票

您必须在脚本字段中提供测试命令。

© www.soinside.com 2019 - 2024. All rights reserved.