4

我正在使用离子框架。我升级到更高版本的 ionic cli 并在运行时收到此错误ionic serve

如何解决问题以允许项目运行ionic serveionic build再次运行?

There was an error serving your Ionic application: TypeError: Cannot read property 'hasOwnProperty' of undefined
    at C:\Users\***\AppData\Roaming\npm\node_modules\ionic\lib\utils\npmScripts.js:16:31
    at _fulfilled (C:\Users\***\node_modules\q\q.js:834:54)
    at self.promiseDispatch.done (C:\Users\***\node_modules\q\q.js:863:30)
    at Promise.promise.promiseDispatch (C:\Users\***\node_modules\q\q.js:796:13)
    at C:\Users\***\node_modules\q\q.js:604:44
    at runSingle (C:\Users\***\node_modules\q\q.js:137:13)
    at flush (C:\Users\***\node_modules\q\q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
4

0 回答 0