npm v6.12.0 및 Node v10.3.0을 설치한 후 내 컴퓨터 centos 7에 Angular를 설치하기 시작했습니다.
실행시 다음과 같은 예외가 발생합니다.
[root@localhost ~]# npm install -g @angular/cli
npm ERR! require(...) is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-10-29T10_59_52_968Z-debug.log
[root@localhost ~]#
내 Linux 서버가 내 웹 애플리케이션의 UAT 테스트 서버가 될 수 있도록 Angular를 설치하는 방법을 알려주실 수 있나요?
편집됨" 이는 2019-10-29T10_59_52_968Z-debug.log 로그입니다.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli '@angular/cli' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 2f7732aa44efb148
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 verbose stack TypeError: require(...) is not a function
7 verbose stack at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/columnify/node_modules/strip-ansi/index.js:2:38)
7 verbose stack at Module._compile (internal/modules/cjs/loader.js:702:30)
7 verbose stack at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
7 verbose stack at Module.load (internal/modules/cjs/loader.js:612:32)
7 verbose stack at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
7 verbose stack at Function.Module._load (internal/modules/cjs/loader.js:543:3)
7 verbose stack at Module.require (internal/modules/cjs/loader.js:650:17)
7 verbose stack at require (internal/modules/cjs/helpers.js:20:18)
7 verbose stack at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/columnify/width.js:1:79)
7 verbose stack at Module._compile (internal/modules/cjs/loader.js:702:30)
7 verbose stack at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
7 verbose stack at Module.load (internal/modules/cjs/loader.js:612:32)
7 verbose stack at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
7 verbose stack at Function.Module._load (internal/modules/cjs/loader.js:543:3)
7 verbose stack at Module.require (internal/modules/cjs/loader.js:650:17)
7 verbose stack at require (internal/modules/cjs/helpers.js:20:18)