相关疑难解决方法(0)

什么是"Linting"?

PHPLint,JSLint和我最近遇到了"你可以动态地抓取你的JS代码",同时阅读有关某些IDE的内容.

那么,这是什么掉毛人人都知道,而我呢?

lint gjslint

1044
推荐指数
7
解决办法
36万
查看次数

我的npm-lint抛出错误"缺少脚本:lint"

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

    "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"
 }
Run Code Online (Sandbox Code Playgroud)

丢失了什么吗?或者我需要安装更多东西吗?我收到错误"缺少脚本:lint"谢谢

node.js npm

5
推荐指数
5
解决办法
1万
查看次数

Firebase功能部署问题:%RESOURCE_DIR%中找不到package.json

我遇到部署Firebase云功能的问题.

重现步骤

  • firebase init
  • 仅选择功能
  • 选择Firebase项目
  • 选择Javascript
  • 使用ESLint
  • 现在用npm安装依赖项
  • 运行firebase部署

预期结果

期望使用firebase-tools来部署云功能.

实际结果

收到以下错误消息:

? firebase deploy

=== Deploying to '<projects>'...

i  deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint
npm ERR! path ...path\firebaseFunction\%RESOURCE_DIR%\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '...path\firebaseFunction\%RESOURCE_DIR%\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete …
Run Code Online (Sandbox Code Playgroud)

node.js npm firebase google-cloud-functions firebase-cli

5
推荐指数
2
解决办法
3234
查看次数