NPM错误!缺少:bootstrap-duallistbox @ github:istvan-ujjmeszaros / bootstrap-duallistbox

时间:2018-09-25 10:41:13

标签: reactjs npm webpack package.json smartadmin

当我运行npm install安装软件包时,出现此错误:

npm ERR! code ELOCKVERIFY
npm ERR! Errors were found in your package-lock.json, run  npm install  to fix them.
npm ERR!     Missing: bootstrap-duallistbox@github:istvan-ujjmeszaros/bootstrap-duallistbox

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/--/.npm/_logs/2018-09-25T10_34_06_085Z-debug.log

这是我的package.json文件:

{
  "name": "smartadmin-reactjs",
  "version": "1.2.4",
  "description": "Smartadmin ReactJs template",
  "main": "index.js",
  "scripts": {
    "build": "./node_modules/.bin/webpack --config webpack.config.js --progress --colors  --env production",
    "build-dev": "./node_modules/.bin/webpack --config webpack.config.js --progress --colors  --env development",
    "dev": "./node_modules/.bin/webpack-dev-server --config webpack.config.js --progress --env development"
  },
  "repository": {
    "type": "git",
    "url": "git+https://smartadmin-reactjs@bitbucket.org/smartadmin-dev/smartadmin-reactjs.git"
  },
  "keywords": [],
  "author": "griga",
  "license": "ISC",
  "homepage": "https://bitbucket.org/smartadmin-dev/smartadmin-reactjs#readme",
  "dependencies": {
    "X-editable": "github:vitalets/x-editable",
    "bootstrap": "3.3.7",
    "bootstrap-colorpicker": "2.5.1",
    "bootstrap-duallistbox": "github:istvan-ujjmeszaros/bootstrap-duallistbox",
    "bootstrap-markdown": "2.10.0",
    "bootstrap-progressbar": "0.9.0",
    "bootstrap-slider": "9.8.0",
    "bootstrap-tagsinput": "0.7.1",
    "bootstrap-timepicker": "0.5.2",
    "bootstrap4-duallistbox": "github:istvan-ujjmeszaros/bootstrap-duallistbox",
    "chart.js": "2.6.0",
    "classnames": "2.2.5",
    "clockpicker": "0.0.7",
    "clone": "2.1.1",
    "core-js": "2.4.1",
    "debounce": "1.0.2",
    "dropzone": "5.0.1",
    "dygraphs": "1.1.1",
    "fuelux": "3.16.0",
    "he": "1.1.1",
    "highcharts": "5.0.12",
    "ion-rangeslider": "2.1.7",
    "jquery": "2.2.4",
    "jquery-color": "1.0.0",
    "jquery-jcrop": "0.9.13",
    "jquery-knob": "1.2.11",
    "jquery-ui": "1.12.1",
    "jquery-ui-npm": "1.12.0",
    "jquery-validation": "1.16.0",
    "jquery.maskedinput": "1.4.1",
    "lodash": "4.17.4",
    "markdown": "0.5.0",
    "morris.js": "0.5.0",
    "nouislider": "10.0.0",
    "prop-types": "15.5.10",
    "raphael": "2.2.7",
    "react": "15.5.4",
    "react-bootstrap": "0.31.0",
    "react-dom": "15.5.4",
    "react-google-maps": "5.1.1",
    "react-hot-loader": "3.0.0-beta.6",
    "react-redux": "5.0.5",
    "react-router": "3.0.5",
    "react-router-redux": "4.0.8",
    "react-tap-event-plugin": "2.0.1",
    "redux": "3.6.0",
    "redux-thunk": "2.2.0",
    "reflux": "6.4.1",
    "scriptjs": "2.5.8",
    "select2": "4.0.3",
    "smartadmin-plugins": "1.0.20",
    "summernote": "0.8.4",
    "then-request": "2.2.0",
    "to-markdown": "3.0.4"
  },
  "devDependencies": {
    "babel-core": "6.25.0",
    "babel-loader": "7.0.0",
    "babel-preset-es2015": "6.24.1",
    "babel-preset-react": "6.24.1",
    "babel-preset-stage-2": "6.24.1",
    "clean-webpack-plugin": "0.1.16",
    "copy-webpack-plugin": "4.0.1",
    "css-loader": "0.28.4",
    "file-loader": "0.11.2",
    "html-loader": "0.4.5",
    "html-webpack-plugin": "2.28.0",
    "imports-loader": "0.7.1",
    "json-loader": "0.5.4",
    "redux-devtools": "3.4.0",
    "redux-devtools-dock-monitor": "1.1.2",
    "redux-devtools-log-monitor": "1.3.0",
    "redux-logger": "3.0.6",
    "script-loader": "0.7.0",
    "style-loader": "0.18.2",
    "url-loader": "0.5.9",
    "webpack": "2.6.1",
    "webpack-dev-server": "2.4.5"
  }
}

我曾尝试分别与bootstrap-duallistboxnpm一起安装bower,但效果不佳。

我正在尝试启动smartAdmin的反应版本。

1 个答案:

答案 0 :(得分:2)

我为您尝试安装Bower和npm。

bower install --save bootstrap-duallistbox

这是结果。

bower bootstrap-duallistbox#*   cached https://github.com/istvan-ujjmeszaros/bootstrap-duallistbox.git#4.0.1
bower bootstrap-duallistbox#* validate 4.0.1 against https://github.com/istvan-ujjmeszaros/bootstrap-duallistbox.git#*

使用npm:我将此添加到package.json中,并且可以解决问题。

"devDependencies": {
    "bootstrap-duallistbox": "^3.0.6"
  }