angular-cli
只是退出:無法安裝角CLI
(myapp)[email protected]:/vagrant$ sudo npm install -g angular-cli
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to [email protected]^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: This package is discontinued. Use [email protected]^4.0.0.
(myapp)[email protected]:/vagrant$ l mapToRegistry uri https://registry.npmjs.org/serve-static
(myapp)[email protected]:/vagrant$ ng
The program 'ng' is currently not installed. To run 'ng' please ask your administrator to install the package 'ng-common'
看來我有兩個節點和新公共管理的最新版本:
(myapp)[email protected]:/vagrant$ npm -v
3.10.9
(myapp)[email protected]:/vagrant$ node -v
v6.9.1
您已經安裝使用sudo所以儘量'須藤ng' – sawbeanraz
面臨着同樣的問題: 流浪漢@流浪的,Ubuntu的信賴-64:〜$ sudo npm cache clean vagrant @ vagrant-ubuntu-trusty-64:〜$ sudo npm uninstall -g angular-cli vagrant @ vagrant-ubuntu-trusty -64:〜$ sudo npm install -g angular-cli ... ..... vagrant @ vagrant-ubuntu-trusty-64:〜$:sill mapToRegistry uri https://registry.npmjs.org/selenium-webdriver –