2016-07-07 3 views
0

업데이트 :NPM -g 설치 각도-CLI 나던 작업

좋아 그것은 seccussfully "NPM 각도-CLI -g 설치"를 설치하지만 지금은 새로운 오류가 발생했습니다 : "당신은 각도 내에서 새로운 명령을 사용할 수 없습니다 -cli 프로젝트. " 새로운 프로젝트를 만들기위한 "새로운 ang2pro"

원래의 게시물

C:\Users\armyTik\Desktop\angular2_projects\1>ng new pro-name 
(node:6512) 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. 
You cannot use the new command inside an angular-cli project. 

:

그것은 잘 yestarday을 일하고 지금은도 다시 설치 nodejs 후 다음과 같은 오류를 얻을 :

(cmd를 관리자 권한으로 열려) the cmd is open with administrator privileges

+0

이 오류입니다. ccurs는 'angular-cli'패키지를 설치하는 동안 또는 모든 패키지에 대해서만 사용됩니다. 'global' 디렉토리 경로에 몇 가지 문제가 있다고 분명히 말합니다. – Venky

+0

http://stackoverflow.com/questions/19874582/change-default-global-installation-directory-for-node-js-modules-in-windows – Venky

+0

내가 수행 한 유일한 단계는 빈 폴더를 만들고 ' npm install -g angular-cli '를 실행하십시오. –

답변

0

prerequisites 컴퓨터에 설치되어 있어야합니다.

angular-cli needs Node 4 or above & Typings V1 or greater

node -v 4

node typings -v는 당신이 sudo를 잊지 마세요 맥에있는 경우 1보다 큰

달리 npm install typings -g

+0

나는이 모든 것을 가지고 있고 여전히 나는 아니다. 같은 오류가 발생합니다. –

0

를 사용하여 typings를 설치해야한다 더 이상이어야한다 명령 앞