简体   繁体   中英

Install Angular CLI offline

Im a very beginner with Angular and getting into it as part of a project. The version we are using is Angular 4.

They are using Angular CLI. But on the remote PC we are working, there is no internet due to security reason. Node and NPM installed. The packages required for the application is installed using some nupkg files, so internet not required that time. But when we tried to execute the application it only shows a blank page. So I tried this command in powershell and also in PackageManager Console. Im using Visual Studio 2017

ng --version

It says ng is not recognized. Attaching a screenshot 在此处输入图片说明

But Angular is showing under npm folder of the project.

@angular/cli

Am I missing anything??

If you have your package on your computer (direct download), you may use "npm link" in the package folder, this will link the package globally. And you can use "ng" in your bash/shell

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM