npm run build不起作用,只显示它的值

时间:2016-02-23 10:39:56

标签: javascript json npm

我已经为包构建分发运行了" npm run build" 命令,但是它没有执行并且只从包中返回它的脚本值.json文件。

C:\ Project \ jdpcmobile_client \ trunk> npm run build

  

parts-mobile@0.0.1 build C:\ Project \ jdpcmobile_client \ trunk

     

grunt build

我的package.json文件是: -

{
  "name": "parts-mobile",
  "private": true,
  "version": "0.0.1",
  "description": "John Deere Parts Catalog Mobile",
  "devDependencies": {
    "express": "~4",
    "body-parser": "~1.14.2",
    "underscore": "~1.8",
    "bower": "~1.4",
    "grunt": "~0.4.5",
    "grunt-cli": "~0.1.13",
    "grunt-angular-gettext": "~2.1.0",
    "grunt-closure-compiler": "0.0.21",
    "load-grunt-tasks": "~3.2.0",
    "grunt-angular-templates": "~0.5.7",
    "grunt-contrib-copy": "~0.8.0",
    "grunt-contrib-clean": "~0.6.0",
    "grunt-contrib-cssmin": "~0.12.3",
    "grunt-jsdoc": "0.6.7",
    "angular-jsdoc": "0.3.3"
  },

  "scripts": {
    "postinstall": "bower install",
    "start": "node server/server.js",
    "start-dist": "node server/server.js dist",
    "translate-extract": "grunt translate-extract",
    "build": "grunt build",
    "docgen": "grunt docgen"
  }
}

那么,如何让" npm run build" 执行成功,我们怎么知道" npm run build" 已成功执行?

任何积极的回应都将受到赞赏。

提前致谢:@Praveen

0 个答案:

没有答案