领导把码云的项目地址 变更了,我就重新迁了项目可以报错如下,问了度娘以及知乎,csdn 啥的,也是一直没有大神来,辛苦老师给看下

来源:1-1 Angular课程介绍

qq_津暖_03815493

2017-08-16

之前本地装了 node  和  npm   但是现在 bootstrap  不是到4.0了嘛,不知道有影响不,我的操作步骤是:

  1.  npm  install

  2. npm install -g @angular/cli

但是报错如下:  我也不知道啥原因,领导说把项目初始化下,可是我不是很懂 ,,辛苦老师了

ERROR in multi script-loader!./node_modules/jquery/dist/jquery.min.js script-loader!./node_modules/bootstrap-tour/build/js/bootstrap-tour.min.js script-loader!./node_modules/tether/dist/js/tether.min.js script-loader!./node_modules/bootstrap/dist/js/bootstrap.min.js script-loader!./node_modules/moment/mo

ment.js script-loader!./node_modules/moment/locale/zh-cn.js script-loader!./node_modules/froala-editor/js/froala_editor.pkgd.min.js script-loader!./node_modules/froala-editor/js/languages/zh_cn.js

Module not found: Error: Can't resolve 'D:\11\world-app\node_modules\tether\dist\js\tether.min.js' in 'D:\11\world-app\node_modules\@angular\cli\models\webpack-configs'

resolve 'D:\11\world-app\node_modules\tether\dist\js\tether.min.js' in 'D:\11\world-app\node_modules\@angular\cli\models\webpack-configs'

  using description file: D:\11\world-app\node_modules\@angular\cli\package.json (relative path: ./models/webpack-configs)

    Field 'browser' doesn't contain a valid alias configuration

  after using description file: D:\11\world-app\node_modules\@angular\cli\package.json (relative path: ./models/webpack-configs)

    using description file: D:\11\world-app\package.json (relative path: ./node_modules/tether/dist/js/tether.min.js)

      no extension

        Field 'browser' doesn't contain a valid alias configuration

        D:\11\world-app\node_modules\tether\dist\js\tether.min.js doesn't exist

      .ts

        Field 'browser' doesn't contain a valid alias configuration

        D:\11\world-app\node_modules\tether\dist\js\tether.min.js.ts doesn't exist

      .js

        Field 'browser' doesn't contain a valid alias configuration

        D:\11\world-app\node_modules\tether\dist\js\tether.min.js.js doesn't exist

      as directory

        D:\11\world-app\node_modules\tether\dist\js\tether.min.js doesn't exist

[D:\11\world-app\node_modules\tether\dist\js\tether.min.js]

[D:\11\world-app\node_modules\tether\dist\js\tether.min.js.ts]

[D:\11\world-app\node_modules\tether\dist\js\tether.min.js.js]

[D:\11\world-app\node_modules\tether\dist\js\tether.min.js]

 @ multi script-loader!./node_modules/jquery/dist/jquery.min.js script-loader!./node_modules/bootstrap-tour/build/js/bootstrap-tour.min.js script-loader!./node_modules/tether/dist/js/tether.min.js script-loader!./node_modules/bootstrap/dist/js/bootstrap.min.js script-loader!./node_modules/moment/moment.j

s script-loader!./node_modules/moment/locale/zh-cn.js script-loader!./node_modules/froala-editor/js/froala_editor.pkgd.min.js script-loader!./node_modules/froala-editor/js/languages/zh_cn.js


写回答

1回答

JoJo

2017-08-17

看错误是某个模块没找到,你试试把node_modules清空重新安装一下吧。

0
1
qq_津暖_03815493
嗯嗯。感谢老师
2017-08-18
共1条回复

Angular4.0从入门到实战 打造股票管理网站

Angular新特性,教你熟练使用 Angular 和 Typescript 开发组件式单页应用

2683 学习 · 1361 问题

查看课程