Jquery not working in angular 6 Error: ENOENT: no such file or directory, open '…\node_modules\jquery\dist\jquery.min.js'

前端 未结 11 1712
离开以前
离开以前 2021-02-01 02:02

I am in process migrating Angular 5 project to Angular 6.

While starting application by

npm start

getting the below error



        
11条回答
  •  独厮守ぢ
    2021-02-01 02:30

    I had the same issue. It appears the installation doesn't update the package.json file unless "--save" is included in the "npm install" command.

    In other words, the packages should be installed with

    npm install --save bootstrap
    npm install --save jquery
    npm install --save popper.js
    

提交回复
热议问题