【发布时间】:2018-03-16 04:49:45
【问题描述】:
我正在尝试使用 Angular CLI 创建一个新的 Angular 2 应用,但出现错误。
以下是我能想到的收集信息:
版本信息
当我跑步时:
ng version
我明白了:
(node:3184) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
angular-cli: 0.1.0
node: 6.1.0
os: win32 x64
错误信息
当我跑步时:
ng new my-dream-app
我明白了:
(node:176) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Cannot find module 'config-chain'
Error: Cannot find module 'config-chain'
at Function.Module._resolveFilename (module.js:438:15)
at Function.Module._load (module.js:386:25)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\work\AppData\Roaming\npm\node_modules\angular-cli\node_modules\npm\lib\config\core.js:2:10)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
提前致谢
【问题讨论】:
-
您不能只是转储错误并期望有人回答。你想达到什么目的?期望的结果是什么?哪一行出现错误?到目前为止,您尝试过什么来解决它?
标签: node.js angular angular-cli