Error: Cannot find module '@ionic/app-scripts'

前端 未结 17 2451
终归单人心
终归单人心 2020-12-13 02:24

I\'m new to Ionic. I was following the Ionic documentation \"get started\", created a project sample named \"super\". The problem is that when I run the command line i

相关标签:
17条回答
  • 2020-12-13 02:31

    I was facing same issue, here is what I did-

    1. Removed node_modules from directory (Manually).
    2. open project dir
    3. run this command-

     npm install
    

    That fixed those errors for me.

    See here.

    0 讨论(0)
  • 2020-12-13 02:32

    To get the latest @ionic/app-scripts, run the following command:

    npm install @ionic/app-scripts@latest --save-dev
    
    0 讨论(0)
  • 2020-12-13 02:36

    I had this issue , i solved it by deleting node_modules/ folder and ran the command npm installnow my app works

    0 讨论(0)
  • 2020-12-13 02:36

    I had the issue, solved by execute cnpm i @ionic/app-scripts.

    0 讨论(0)
  • 2020-12-13 02:37

    After half a day trying to solve this And after: python version error node-sass misconfiguration error

    I did the following

    • Remove node-modules folder
    • Run "npm audit fix --force"
    • Downgrade webpack installation "npm uninstall webpack && install webpack@3.12.0"

    The last one because ionic build was giving me an error on that package after the audit

    0 讨论(0)
  • 2020-12-13 02:37

    In my case, I need to set NODE_ENV to production then it installs successfully

    set NODE_ENV=production
    npm install @ionic/app-scripts@latest --save-dev
    
    0 讨论(0)
提交回复
热议问题