【问题标题】:build dev failed: Cannot set property 'fileSystem' of null构建开发失败:无法将属性“fileSystem”设置为 null
【发布时间】:2017-06-21 16:59:24
【问题描述】:

我在 Linux Debian 我有几次这个错误 我尝试使用 npm install 和 npm uninstall 安装卸载

ionic -v
2.1.14

> ionic-app-scripts serve

[11:15:49]  ionic-app-scripts 0.0.47 
[11:15:49]  watch started ... 
[11:15:49]  build dev started ... 
[11:15:49]  clean started ... 
[11:15:49]  clean finished in 3 ms 
[11:15:49]  copy started ... 
[11:15:49]  transpile started ... 
[11:15:51]  transpile finished in 2.19 s 
[11:15:51]  webpack started ... 
[11:15:51]  build dev failed: Cannot set property 'fileSystem' of null 
[11:15:51]  dev server running: http://localhost:8100/ 

我的问题不同,我安装了ionic-app-scripts 0.0.47,就像我在其他答案中读到的那样,但它不起作用我也尝试过 @ionic/app-scripts@latest 但它不起作用我有这个错误 build dev failed: Cannot set property 'fileSystem' of null

【问题讨论】:

  • 如果你已经安装了最新的 ionic cli.. 获取 ionic-app-scripts 1.0.0..检查答案
  • 我安装了ionic-app-scripts 0.0.47,就像我在其他答案中读到的那样” - 这不是答案所说的。你在哪里读到的?
  • npm install @ionic/app-scripts@latest 给我这个错误@ionic/app-scripts@1.0.0 invalid
  • 更改你的 package.json 中应用脚本的版本,然后删除 node-modules,然后执行 npm install

标签: linux ionic2


【解决方案1】:

在你的 package.json 中安装这个:"@ionic/app-scripts": "1.0.0" app-scripts 版本。

这个错误是在 npm update 或 ionic lib update 之后出现的(我想测试这些命令……大错特错)。

小心 lib 更新。

【讨论】:

    猜你喜欢
    • 2014-08-25
    • 2013-04-21
    • 2013-08-16
    • 2017-05-05
    • 2017-04-06
    • 2021-10-02
    • 2021-05-23
    • 2019-10-24
    相关资源
    最近更新 更多