首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >我的npm-lint抛出错误"missing script: lint“

我的npm-lint抛出错误"missing script: lint“
EN

Stack Overflow用户
提问于 2017-06-14 02:34:59
回答 9查看 31.5K关注 0票数 12

我尝试在本地运行npm run,并运行npm init,它创建了package.json。这是我的package.json

代码语言:javascript
运行
复制
    "name": "ironic-ui",
    "version": "1.0.0",
    "description": "======================== Team and repository tags    ========================",
    "main": "test-shim.js",
    "directories": {
    "doc": "doc"
   },
    "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
   },
    "repository": {
    "type": "git",
    "url": "https://git.openstack.org/openstack/ironic-ui"
  },
    "author": "",
    "license": "ISC"
 }

是不是遗漏了什么?或者我需要安装更多的东西?我收到一个错误"Missing script: lint“谢谢

EN

Stack Overflow用户

发布于 2021-09-28 15:50:44

package.json"lint": "eslint .",编辑到"lint": "eslint",对我来说很有效。

票数 0
EN
查看全部 9 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44529061

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档