服务不编译
ng serve not compiling
我得到这个试图 运行 我的本地服务器 ng serve
:
[error] Error: NGCC failed.
at NgccProcessor.process (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@ngtools/webpack/src/ngcc_processor.js:129:19)
at compiler.hooks.thisCompilation.tap (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@ngtools/webpack/src/ivy/plugin.js:112:27)
at SyncHook.eval [as call] (eval at create (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:13:1)
at SyncHook.lazyCompileHook (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at Compiler.newCompilation (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Compiler.js:630:30)
at hooks.beforeCompile.callAsync.err (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Compiler.js:667:29)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at Compiler.compile (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Compiler.js:662:28)
at compiler.hooks.watchRun.callAsync.err (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Watching.js:77:18)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:24:1)
at AsyncSeriesHook.lazyCompileHook (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at Watching._go (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Watching.js:41:32)
at Watching.compiler.readRecords.err (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Watching.js:33:9)
at Compiler.readRecords (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Compiler.js:529:11)
at new Watching (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Watching.js:30:17)
由于我对 JS/npm 世界不是很熟悉,我想知道它是否常见且易于修复,还是我应该从头开始重新安装。
在出现这个问题之前,我 运行 磁盘不足 space 安装了一些 npm 包导致了这个错误:
54 verbose stack Error: ENOTEMPTY: directory not empty, rename '/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@angular/core' -> '/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@angular/.core-KuljwpJv'
55 verbose cwd /home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front
56 verbose Linux 5.8.0-50-generic
57 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "install" "@angular/animations" "--save"
58 verbose node v10.19.0
59 verbose npm v7.12.0
60 error code ENOTEMPTY
61 error syscall rename
62 error path /home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@angular/core
63 error dest /home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@angular/.core-KuljwpJv
64 error errno -39
65 error ENOTEMPTY: directory not empty, rename '/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@angular/core' -> '/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@angular/.core-KuljwpJv'
66 verbose exit -39
可能是由于文件夹锁定,我很确定这是我问题的根源。
我已经删除了/node_modules
然后我用
安装了依赖项
npm install
问题解决了
我得到这个试图 运行 我的本地服务器 ng serve
:
[error] Error: NGCC failed.
at NgccProcessor.process (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@ngtools/webpack/src/ngcc_processor.js:129:19)
at compiler.hooks.thisCompilation.tap (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@ngtools/webpack/src/ivy/plugin.js:112:27)
at SyncHook.eval [as call] (eval at create (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:13:1)
at SyncHook.lazyCompileHook (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at Compiler.newCompilation (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Compiler.js:630:30)
at hooks.beforeCompile.callAsync.err (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Compiler.js:667:29)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at Compiler.compile (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Compiler.js:662:28)
at compiler.hooks.watchRun.callAsync.err (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Watching.js:77:18)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:24:1)
at AsyncSeriesHook.lazyCompileHook (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/node_modules/tapable/lib/Hook.js:154:20)
at Watching._go (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Watching.js:41:32)
at Watching.compiler.readRecords.err (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Watching.js:33:9)
at Compiler.readRecords (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Compiler.js:529:11)
at new Watching (/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/webpack/lib/Watching.js:30:17)
由于我对 JS/npm 世界不是很熟悉,我想知道它是否常见且易于修复,还是我应该从头开始重新安装。
在出现这个问题之前,我 运行 磁盘不足 space 安装了一些 npm 包导致了这个错误:
54 verbose stack Error: ENOTEMPTY: directory not empty, rename '/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@angular/core' -> '/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@angular/.core-KuljwpJv'
55 verbose cwd /home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front
56 verbose Linux 5.8.0-50-generic
57 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "install" "@angular/animations" "--save"
58 verbose node v10.19.0
59 verbose npm v7.12.0
60 error code ENOTEMPTY
61 error syscall rename
62 error path /home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@angular/core
63 error dest /home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@angular/.core-KuljwpJv
64 error errno -39
65 error ENOTEMPTY: directory not empty, rename '/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@angular/core' -> '/home/geoffroy/Documents/1_projets_persos/35_ngodt/ngodt-front/node_modules/@angular/.core-KuljwpJv'
66 verbose exit -39
可能是由于文件夹锁定,我很确定这是我问题的根源。
我已经删除了/node_modules
然后我用
安装了依赖项npm install
问题解决了