-
Notifications
You must be signed in to change notification settings - Fork 12k
Failed to create new project after install angular-cli #8392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I guess there were errors happened when install angular cli C:\Users\cwang>npm install -g @angular/cli
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.6.0/win32-x64-57_binding.node tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:7890 Hint: If github.com is not accessible in your location
or configure npm proxy via
Building: C:\Program Files\nodejs\node.exe C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= Project "C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules\node-sass\build\binding.vcxproj.metaproj" (2) is building "C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules\node-sass\build\bind Done Building Project "C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules\node-sass\build\binding.vcxproj.metaproj" (default targets). Done Building Project "C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules\node-sass\build\binding.sln" (default targets). Build succeeded. "C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules\node-sass\build\binding.sln" (default target) (1) -> "C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules\node-sass\build\binding.sln" (default target) (1) -> "C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules\node-sass\build\binding.sln" (default target) (1) ->
Time Elapsed 00:00:39.11 npm ERR! A complete log of this run can be found in: |
Follow the install steps |
This seems like a problem with your node/npm and not with Angular CLI. Please have a look at the fixing npm permissions page, common errors page, npm issue tracker, or open a new issue if the problem you are experiencing isn't known. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Uh oh!
There was an error while loading. Please reload this page.
After install angular-cli and then try to create new project
error occured
C:>ng new myapp
Error: tree.branch is not a function
tree.branch is not a function
node verson = 8.9.0
npm version = 5.5.1
Then I use the following 2 commands to uninstall angular/cli
npm uninstall -g @angular/cli
npm cache verify
When I install again using the following command (I use administrator permission)
npm install -g @angular/cli
Here are errors:
C:\windows\system32>npm install -g @angular/cli
npm WARN Error: EPERM: operation not permitted, scandir 'C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules'
npm WARN { Error: EPERM: operation not permitted, scandir 'C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules'
npm WARN stack: 'Error: EPERM: operation not permitted, scandir 'C:\Users\cwang\AppData\Roaming\npm\node_modules\@angular\cli\node_modules'',
npm WARN errno: -4048,
npm WARN code: 'EPERM',
npm WARN syscall: 'scandir',
npm WARN path: 'C:\Users\cwang\AppData\Roaming\npm\node_modules\@angular\cli\node_modules' }
npm ERR! path C:\Users\cwang\AppData\Roaming\npm\[email protected]\node_modules\node-sass
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\cwang\AppData\Roaming\npm\[email protected]\node_modules\node-sass' -> 'C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules\node-sass'
npm ERR! { Error: EPERM: operation not permitted, rename 'C:\Users\cwang\AppData\Roaming\npm\[email protected]\node_modules\node-sass' -> 'C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules\node-sa
npm ERR! cause:
npm ERR! { Error: EPERM: operation not permitted, rename 'C:\Users\cwang\AppData\Roaming\npm\[email protected]\node_modules\node-sass' -> 'C:\Users\cwang\AppData\Roaming\npm\node_modules@angular\cli\node_modules\node-
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\Users\cwang\AppData\Roaming\npm\node_modules\@angular\.cli.DELETE\node_modules\node-sass',
npm ERR! dest: 'C:\Users\cwang\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\node-sass' },
npm ERR! stack: 'Error: EPERM: operation not permitted, rename 'C:\Users\cwang\AppData\Roaming\npm\node_modules\@angular\.cli.DELETE\node_modules\node-sass' -> 'C:\Users\cwang\AppData\Roaming\npm\node_modules\@angul
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\Users\cwang\AppData\Roaming\npm\node_modules\@angular\.cli.DELETE\node_modules\node-sass',
npm ERR! dest: 'C:\Users\cwang\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\node-sass' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\cwang\AppData\Roaming\npm-cache_logs\2017-11-07T21_55_44_380Z-debug.log
C:\windows\system32>
The text was updated successfully, but these errors were encountered: