发布npm包一直报错,求解决急。。谢谢辣
发布于 9 年前 作者 petitspois 4982 次浏览 最后一次编辑是 8 年前 来自 问答

untitled3.png

untitled4.png

untitled5.png

//package.json

{
  "name": "gulp-file-velocity",
  "version": "0.0.1",
  "description": "a gulp plugin for file include",
  "main": "lib/index.js",
  "scripts": {
    "test": "mocha -R spec -t 200 test/*.js",
    "test-cov": "istanbul cover node_modules/.bin/_mocha -- -R dot -t 200 test/*.js",
    "test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- -R dot -t 200 test/*.js",
    "jscs": "jscs lib && jscs test"
  },
  "repository": "petitspois/gulp-velocity",
  "keywords": [
    "gulpplugin",
    "file",
    "include",
    "replace",
    "gulp",
    "plugin"
  ],
  "files": [
    "lib"
  ],
  "author": "damon",
  "license": "MIT",
  "devDependencies": {
    "gulp": "3",
    "istanbul": "0",
    "markdown": "0",
    "mocha": "2",
    "should": "7"
  },
  "dependencies": {
    "balanced-match": "^0.2.1",
    "concat-stream": "^1.5.1",
    "extend": "^3.0.0",
    "flatnest": "^1.0.0",
    "gulp-util": "^3.0.7",
    "through2": "^2.0.0"
  }
}

5 回复

全局默认npm registry设置成淘宝npm了? 自豪地采用 CNodeJS ionic

@fengmk2 谢谢啊,解决了。

@wyvernnot 有必要写个npm,执行npm publish 先把registry重置了

最好是安装cnpm,然后保持npm不变 自豪地采用 CNodeJS ionic

回到顶部