VUE项目编译错误,缺少50个依赖

ERROR Failed to compile with 50 errors

vue还温馨♥提示我,说是下面的依赖找不到了

These dependencies were not found:
* diagram-js/lib/features/align-elements in ./src/business/platform/bpmn/bpmn-js/Modeler.js
* diagram-js/lib/features/auto-scroll in ./src/business/platform/bpmn/bpmn-js/Modeler.js
* diagram-js/lib/features/bendpoints in ./src/business/platform/bpmn/bpmn-js/Modeler.js
* diagram-js/lib/features/connect in ./src/business/platform/bpmn/bpmn-js/Modeler.js, ./src/business/platform/bpmn/bpmn-js/features/context-pad/index.js and 2 others
* diagram-js/lib/features/connection-preview in ./src/business/platform/bpmn/bpmn-js/Modeler.js
* diagram-js/lib/features/context-pad in ./src/business/platform/bpmn/bpmn-js/features/context-pad/index.js, ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib
??vue-loader-options!./src/business/platform/bpmn/components/flow-diagram/index.vue?vue&type=script&lang=js& and 1 other
* diagram-js/lib/features/create in ./src/business/platform/bpmn/bpmn-js/Modeler.js, ./src/business/platform/bpmn/bpmn-js/features/context-pad/index.js and 1 other
* diagram-js/lib/features/global-connect in ./src/business/platform/bpmn/bpmn-js/features/palette/index.js
* diagram-js/lib/features/hand-tool in ./src/business/platform/bpmn/bpmn-js/features/palette/index.js
* diagram-js/lib/features/interaction-events in ./node_modules/diagram-js-direct-editing/index.js
* diagram-js/lib/features/keyboard-move-selection in ./src/business/platform/bpmn/bpmn-js/Modeler.js
* diagram-js/lib/features/lasso-tool in ./src/business/platform/bpmn/bpmn-js/features/palette/index.js
* diagram-js/lib/features/modeling in ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/business/platform/bpmn/components/flow-diagr
am/index.vue?vue&type=script&lang=js&, ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/business/platform/bpmn/setting/bpmn-image/i
ndex.vue?vue&type=script&lang=js&
* diagram-js/lib/features/move in ./src/business/platform/bpmn/bpmn-js/Modeler.js
* diagram-js/lib/features/outline in ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/business/platform/bpmn/components/flow-diagra
m/index.vue?vue&type=script&lang=js&, ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/business/platform/bpmn/setting/bpmn-image/in
dex.vue?vue&type=script&lang=js&
* diagram-js/lib/features/palette in ./src/business/platform/bpmn/bpmn-js/features/palette/index.js, ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-lo
ader-options!./src/business/platform/bpmn/components/flow-diagram/index.vue?vue&type=script&lang=js& and 1 other
* diagram-js/lib/features/popup-menu in ./src/business/platform/bpmn/bpmn-js/features/popup-menu/index.js
* diagram-js/lib/features/resize in ./src/business/platform/bpmn/bpmn-js/Modeler.js
* diagram-js/lib/features/selection in ./src/business/platform/bpmn/bpmn-js/features/context-pad/index.js, ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??
vue-loader-options!./src/business/platform/bpmn/components/flow-diagram/index.vue?vue&type=script&lang=js& and 1 other
* diagram-js/lib/features/space-tool in ./src/business/platform/bpmn/bpmn-js/features/palette/index.js
* diagram-js/lib/i18n/translate in ./node_modules/bpmn-js-properties-panel/lib/index.js, ./src/business/platform/bpmn/bpmn-js/features/palette/index.js and 2 others
* diagram-js/lib/navigation/keyboard-move in ./src/business/platform/bpmn/bpmn-js/Modeler.js
* diagram-js/lib/navigation/movecanvas in ./src/business/platform/bpmn/bpmn-js/Modeler.js, ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-optio
ns!./src/business/platform/bpmn/components/flow-diagram/index.vue?vue&type=script&lang=js& and 1 other
* diagram-js/lib/navigation/touch in ./src/business/platform/bpmn/bpmn-js/Modeler.js, ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./
src/business/platform/bpmn/components/flow-diagram/index.vue?vue&type=script&lang=js& and 1 other
* diagram-js/lib/navigation/zoomscroll in ./src/business/platform/bpmn/bpmn-js/Modeler.js, ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-optio
ns!./src/business/platform/bpmn/components/flow-diagram/index.vue?vue&type=script&lang=js& and 1 other
* diagram-js/lib/util/Collections in ./node_modules/bpmn-js-properties-panel/lib/helper/CategoryHelper.js
* diagram-js/lib/util/GraphicsUtil in ./node_modules/diagram-js-minimap/dist/index.esm.js
* diagram-js/lib/util/Mouse in ./src/business/platform/bpmn/bpmn-js/features/context-pad/ContextPadProvider.js

还特别提醒我可以这样子下载这些依赖…

To install them, you can run: npm install --save diagram-js/lib/features/align-elements diagram-js/lib/features/auto-scroll diagram-js/lib/features/bendpoints diagram-js/lib/features/connect diagram-js/lib/features/connection-preview diagram-js/lib/features/context-pad d
iagram-js/lib/features/create diagram-js/lib/features/global-connect diagram-js/lib/features/hand-tool diagram-js/lib/features/interaction-events diagram-js/lib/features/keyboard-move-selection diagram-js/lib/features/lasso-tool diagram-js/lib/features/modeling diagram-j
s/lib/features/move diagram-js/lib/features/outline diagram-js/lib/features/palette diagram-js/lib/features/popup-menu diagram-js/lib/features/resize diagram-js/lib/features/selection diagram-js/lib/features/space-tool diagram-js/lib/i18n/translate diagram-js/lib/navigat
ion/keyboard-move diagram-js/lib/navigation/movecanvas diagram-js/lib/navigation/touch diagram-js/lib/navigation/zoomscroll diagram-js/lib/util/Collections diagram-js/lib/util/GraphicsUtil diagram-js/lib/util/Mouse
Error from chokidar (E:\): Error: EBUSY: resource busy or locked, lstat 'E:\pagefile.sys'
Error from chokidar (E:\node_modules): Error: EBUSY: resource busy or locked, lstat 'E:\pagefile.sys'

于是我很开心的屁颠屁颠的就install 它(觉得Vue还挺人性化的哈)

npm install --save diagram-js/lib/features/align-elements diagram-js/lib/features/auto-scroll diagram-js/lib/features/bendpoints diagram-js/lib/features/connect diagram-js/lib/features/connection-preview diagram-js/lib/features/context-pad d
iagram-js/lib/features/create diagram-js/lib/features/global-connect diagram-js/lib/features/hand-tool diagram-js/lib/features/interaction-events diagram-js/lib/features/keyboard-move-selection diagram-js/lib/features/lasso-tool diagram-js/lib/features/modeling diagram-j
s/lib/features/move diagram-js/lib/features/outline diagram-js/lib/features/palette diagram-js/lib/features/popup-menu diagram-js/lib/features/resize diagram-js/lib/features/selection diagram-js/lib/features/space-tool diagram-js/lib/i18n/translate diagram-js/lib/navigat
ion/keyboard-move diagram-js/lib/navigation/movecanvas diagram-js/lib/navigation/touch diagram-js/lib/navigation/zoomscroll diagram-js/lib/util/Collections diagram-js/lib/util/GraphicsUtil diagram-js/lib/util/Mouse

骗人的家伙!

应该install 前面那小段

npm install --save diagram-js

VUE项目编译错误,缺少50个依赖_第1张图片

这样子才解决了问题

你可能感兴趣的:(项目搭建问题,VUE,vue.js,前端,javascript)