Angular 6 Firebase部署命令-错误:“无法读取errorHandler上未定义的属性'get'...”

时间:2018-06-20 15:56:59

标签: javascript angular firebase firebase-hosting

自从更新到Angular 6以来,在使用firebase deploy后尝试运行ng build --prod命令时,我已经收到此消息。

完整错误:

  

i部署数据库,存储,firestore,功能,托管   运行命令:npm --prefix%RESOURCE_DIR%运行lint   错误:EPERM:不允许操作,mkdir'C:\ Users \ Nick'   TypeError:无法读取未定义的属性“ get”       在errorHandler(C:\ Users \ Nick Cook \ AppData \ Roaming \ npm \ node_modules \ npm \ lib \ utils \ error-handler.js:213:18)       在C:\ Users \ Nick Cook \ AppData \ Roaming \ npm \ node_modules \ npm \ bin \ npm-cli.js:83:20       在cb(C:\ Users \ Nick Cook \ AppData \ Roaming \ npm \ node_modules \ npm \ lib \ npm.js:215:22)       在C:\ Users \ Nick Cook \ AppData \ Roaming \ npm \ node_modules \ npm \ lib \ npm.js:253:24       在C:\ Users \ Nick Cook \ AppData \ Roaming \ npm \ node_modules \ npm \ lib \ config \ core.js:81:7       在Array.forEach()       在C:\ Users \ Nick Cook \ AppData \ Roaming \ npm \ node_modules \ npm \ lib \ config \ core.js:80:13       在f(C:\ Users \ Nick Cook \ AppData \ Roaming \ npm \ node_modules \ npm \ node_modules \ once \ once.js:25:25)       在afterExtras(C:\ Users \ Nick Cook \ AppData \ Roaming \ npm \ node_modules \ npm \ lib \ config \ core.js:178:20)       在Conf。 (C:\ Users \ Nick Cook \ AppData \ Roaming \ npm \ node_modules \ npm \ lib \ config \ core.js:235:20)   C:\ Users \ Nick Cook \ AppData \ Roaming \ npm \ node_modules \ npm \ lib \ utils \ error-handler.js:213     如果(npm.config.get('json')){                    ^

     

TypeError:无法读取未定义的属性“ get”       在process.errorHandler(C:\ Users \ Nick Cook \ AppData \ Roaming \ npm \ node_modules \ npm \ lib \ utils \ error-handler.js:213:18)       在process.emit(events.js:180:13)       在process._fatalException(internal / bootstrap / node.js:391:27)

     

错误:函数预部署错误:命令以非零终止   退出代码7

0 个答案:

没有答案