STF 源码安装,angular 等模块没有安装上

张飞 · 2018年12月24日 · 最后由 张飞 回复于 2018年12月24日 · 2083 次阅读

前置条件

image.png
npm 设置的是淘宝源

操作步骤

  1. git clone https://github.com/openstf/stf.git
  2. cd stf
  3. npm install
  4. npm link
  5. bin/stf local

错误日志

ERROR in ./res/app/app.js
Module not found: Error: Cannot resolve module 'angular' in /srv/stf-3.4.0/res/app
@ ./res/app/app.js 2:2-20

ERROR in ./res/auth/ldap/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular' in /srv/stf-3.4.0/res/auth/ldap/scripts
@ ./res/auth/ldap/scripts/entry.js 4:2-20

ERROR in ./res/auth/mock/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular' in /srv/stf-3.4.0/res/auth/mock/scripts
@ ./res/auth/mock/scripts/entry.js 4:2-20

ERROR in ./res/app/app.js
Module not found: Error: Cannot resolve module 'angular-route' in /srv/stf-3.4.0/res/app
@ ./res/app/app.js 3:2-26

ERROR in ./res/auth/ldap/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-route' in /srv/stf-3.4.0/res/auth/ldap/scripts
@ ./res/auth/ldap/scripts/entry.js 5:2-26

ERROR in ./res/auth/mock/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-route' in /srv/stf-3.4.0/res/auth/mock/scripts
@ ./res/auth/mock/scripts/entry.js 5:2-26

ERROR in ./res/app/app.js
Module not found: Error: Cannot resolve module 'angular-touch' in /srv/stf-3.4.0/res/app
@ ./res/app/app.js 4:2-26

ERROR in ./res/auth/ldap/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-touch' in /srv/stf-3.4.0/res/auth/ldap/scripts
@ ./res/auth/ldap/scripts/entry.js 6:2-26

ERROR in ./res/auth/mock/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-touch' in /srv/stf-3.4.0/res/auth/mock/scripts
@ ./res/auth/mock/scripts/entry.js 6:2-26

ERROR in ./res/web_modules/gettext/index.js
Module not found: Error: Cannot resolve module 'angular-gettext' in /srv/stf-3.4.0/res/web_modules/gettext
@ ./res/web_modules/gettext/index.js 1:0-26

ERROR in ./res/web_modules/angular-hotkeys/index.js
Module not found: Error: Cannot resolve module 'angular-hotkeys/build/hotkeys.css' in /srv/stf-3.4.0/res/web_modules/angular-hotkeys
@ ./res/web_modules/angular-hotkeys/index.js 1:0-44

ERROR in ./res/web_modules/angular-hotkeys/index.js
Module not found: Error: Cannot resolve module 'angular-hotkeys/build/hotkeys.js' in /srv/stf-3.4.0/res/web_modules/angular-hotkeys
@ ./res/web_modules/angular-hotkeys/index.js 3:0-43

ERROR in ./res/web_modules/nine-bootstrap/index.js
Module not found: Error: Cannot resolve module 'bootstrap/dist/css/bootstrap.css' in /srv/stf-3.4.0/res/web_modules/nine-bootstrap
@ ./res/web_modules/nine-bootstrap/index.js 1:0-43

ERROR in ./res/web_modules/nine-bootstrap/index.js
Module not found: Error: Cannot resolve module 'components-font-awesome/css/font-awesome.css' in /srv/stf-3.4.0/res/web_modules/nine-bootstrap
@ ./res/web_modules/nine-bootstrap/index.js 5:0-55

ERROR in ./res/web_modules/nine-bootstrap/index.js
Module not found: Error: Cannot resolve module 'font-lato-2-subset' in /srv/stf-3.4.0/res/web_modules/nine-bootstrap
@ ./res/web_modules/nine-bootstrap/index.js 7:0-29

ERROR in ./res/web_modules/ui-bootstrap/index.js
Module not found: Error: Cannot resolve module 'angular-bootstrap/ui-bootstrap-tpls' in /srv/stf-3.4.0/res/web_modules/ui-bootstrap
@ ./res/web_modules/ui-bootstrap/index.js 1:0-53

ERROR in ./res/web_modules/angular-borderlayout/index.js
Module not found: Error: Cannot resolve module 'angular-borderlayout/src/borderLayout.js' in /srv/stf-3.4.0/res/web_modules/angular-borderlayout
@ ./res/web_modules/angular-borderlayout/index.js 1:0-51

ERROR in ./res/web_modules/angular-borderlayout/index.js
Module not found: Error: Cannot resolve module 'angular-borderlayout/src/borderLayout.css' in /srv/stf-3.4.0/res/web_modules/angular-borderlayout
@ ./res/web_modules/angular-borderlayout/index.js 2:0-52

ERROR in ./res/web_modules/angular-xeditable/index.js
Module not found: Error: Cannot resolve module 'angular-xeditable/dist/js/xeditable.js' in /srv/stf-3.4.0/res/web_modules/angular-xeditable
@ ./res/web_modules/angular-xeditable/index.js 1:0-49

ERROR in ./res/web_modules/angular-xeditable/index.js
Module not found: Error: Cannot resolve module 'angular-xeditable/dist/css/xeditable.css' in /srv/stf-3.4.0/res/web_modules/angular-xeditable
@ ./res/web_modules/angular-xeditable/index.js 2:0-51

ERROR in ./res/app/components/stf/device/device-service.js
Module not found: Error: Cannot resolve module 'oboe' in /srv/stf-3.4.0/res/app/components/stf/device
@ ./res/app/components/stf/device/device-service.js 1:11-26

ERROR in ./res/app/control-panes/dashboard/clipboard/index.js
Module not found: Error: Cannot resolve module 'angular-elastic' in /srv/stf-3.4.0/res/app/control-panes/dashboard/clipboard
@ ./res/app/control-panes/dashboard/clipboard/index.js 3:0-26

ERROR in ./res/app/components/stf/common-ui/table/index.js
Module not found: Error: Cannot resolve module 'ng-table/dist/ng-table' in /srv/stf-3.4.0/res/app/components/stf/common-ui/table
@ ./res/app/components/stf/common-ui/table/index.js 2:0-40

ERROR in ./res/app/components/stf/common-ui/notifications/index.js
Module not found: Error: Cannot resolve module 'angular-animate' in /srv/stf-3.4.0/res/app/components/stf/common-ui/notifications
@ ./res/app/components/stf/common-ui/notifications/index.js 1:0-26

ERROR in ./res/app/components/stf/common-ui/enable-autofill/index.js
Module not found: Error: Cannot resolve module 'angular-cookies' in /srv/stf-3.4.0/res/app/components/stf/common-ui/enable-autofill
@ ./res/app/components/stf/common-ui/enable-autofill/index.js 1:0-26

ERROR in ./res/web_modules/ng-context-menu/index.js
Module not found: Error: Cannot resolve module 'ng-context-menu/dist/ng-context-menu' in /srv/stf-3.4.0/res/web_modules/ng-context-menu
@ ./res/web_modules/ng-context-menu/index.js 1:0-47

ERROR in ./res/app/components/stf/angular-packery/index.js
Module not found: Error: Cannot resolve module 'packery/js/rect.js' in /srv/stf-3.4.0/res/app/components/stf/angular-packery
@ ./res/app/components/stf/angular-packery/index.js 3:0-29

ERROR in ./res/app/components/stf/angular-packery/index.js
Module not found: Error: Cannot resolve module 'packery/js/packer.js' in /srv/stf-3.4.0/res/app/components/stf/angular-packery
@ ./res/app/components/stf/angular-packery/index.js 4:0-31

ERROR in ./res/app/components/stf/angular-packery/index.js
Module not found: Error: Cannot resolve module 'packery/js/item.js' in /srv/stf-3.4.0/res/app/components/stf/angular-packery
@ ./res/app/components/stf/angular-packery/index.js 5:0-29

ERROR in ./res/app/components/stf/angular-packery/index.js
Module not found: Error: Cannot resolve module 'packery/js/packery.js' in /srv/stf-3.4.0/res/app/components/stf/angular-packery
@ ./res/app/components/stf/angular-packery/index.js 6:14-46

ERROR in ./res/app/settings/general/local/index.js
Module not found: Error: Cannot resolve module 'angular-bootstrap/ui-bootstrap-tpls' in /srv/stf-3.4.0/res/app/settings/general/local
@ ./res/app/settings/general/local/index.js 1:0-28

ERROR in ./res/web_modules/ng-file-upload/index.js
Module not found: Error: Cannot resolve module 'ng-file-upload/angular-file-upload-shim' in /srv/stf-3.4.0/res/web_modules/ng-file-upload
@ ./res/web_modules/ng-file-upload/index.js 1:0-50

ERROR in ./res/web_modules/ng-file-upload/index.js
Module not found: Error: Cannot resolve module 'ng-file-upload/angular-file-upload' in /srv/stf-3.4.0/res/web_modules/ng-file-upload
@ ./res/web_modules/ng-file-upload/index.js 2:0-45

ERROR in ./res/app/components/stf/logcat/logcat-service.js
Module not found: Error: Cannot resolve module 'underscore.string/index' in /srv/stf-3.4.0/res/app/components/stf/logcat
@ ./res/app/components/stf/logcat/logcat-service.js 2:9-37

ERROR in ./res/web_modules/angular-growl/index.js
Module not found: Error: Cannot resolve module 'angular-growl-v2/build/angular-growl.js' in /srv/stf-3.4.0/res/web_modules/angular-growl
@ ./res/web_modules/angular-growl/index.js 1:0-50

ERROR in ./res/app/components/stf/common-ui/modals/fatal-message/index.js
Module not found: Error: Cannot resolve module 'angular-route' in /srv/stf-3.4.0/res/app/components/stf/common-ui/modals/fatal-message
@ ./res/app/components/stf/common-ui/modals/fatal-message/index.js 1:0-24

ERROR in ./res/web_modules/angular-ladda/index.js
Module not found: Error: Cannot resolve module 'angular-ladda/src/angular-ladda' in /srv/stf-3.4.0/res/web_modules/angular-ladda
@ ./res/web_modules/angular-ladda/index.js 3:0-42

ERROR in ./res/web_modules/epoch/index.js
Module not found: Error: Cannot resolve module 'jquery' in /srv/stf-3.4.0/res/web_modules/epoch
@ ./res/web_modules/epoch/index.js 1:0-17

ERROR in ./res/web_modules/epoch/index.js
Module not found: Error: Cannot resolve module 'd3' in /srv/stf-3.4.0/res/web_modules/epoch
@ ./res/web_modules/epoch/index.js 3:0-13

ERROR in ./res/web_modules/epoch/index.js
Module not found: Error: Cannot resolve module 'epoch/dist/css/epoch.min.css' in /srv/stf-3.4.0/res/web_modules/epoch
@ ./res/web_modules/epoch/index.js 4:0-39

ERROR in ./res/web_modules/epoch/index.js
Module not found: Error: Cannot resolve module 'epoch/dist/js/epoch.min.js' in /srv/stf-3.4.0/res/web_modules/epoch
@ ./res/web_modules/epoch/index.js 5:0-37

ERROR in ./res/web_modules/epoch/index.js
Module not found: Error: Cannot resolve module 'ng-epoch' in /srv/stf-3.4.0/res/web_modules/epoch
@ ./res/web_modules/epoch/index.js 6:0-19

ERROR in ./res/app/components/stf/angular-draggabilly/index.js
Module not found: Error: Cannot resolve module 'draggabilly' in /srv/stf-3.4.0/res/app/components/stf/angular-draggabilly
@ ./res/app/components/stf/angular-draggabilly/index.js 1:18-40

共收到 2 条回复 时间 点赞

npm install 时怎么没有把那些依赖安装上呢,npm 设置了淘宝源

直接 npm install -g stf 可以成功安装运行

张飞 关闭了讨论 12月24日 17:57
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册