1

I run ng new onepage and I get after several minutes the following error:

npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^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 lodash@^4.0.0. 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]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux"," arch":"x64"}) npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. npm ERR! Linux 4.4.0-31-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! node v6.8.0 npm ERR! npm v3.10.8 npm ERR! path ../typescript/bin/tsc npm ERR! code EPROTO npm ERR! errno -71 npm ERR! syscall symlink npm ERR! EPROTO: protocol error, symlink '../typescript/bin/tsc' -> '/vagrant/html/onepage/node_modules/@angular-cli/ast-tools/node_modules/.bin/tsc' npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request: npm ERR! /vagrant/html/onepage/npm-debug.log 

I thought it is --no-bin-links and I run ng new onepage --no-bin-links, but I have the same error.

Can any one help me?

2 Answers 2

2

first use command

ng new project name --skip-install 

The skip-install flag will prevent installing npm packages.

then change directory to your project directory and run command

npm install --no-bin-links 

Hope this solves your issue. Remember to run command as root user

Sign up to request clarification or add additional context in comments.

Comments

0

based on @mashqur remember to run ng serve as root user as well otherwise will get error ERROR in EPERM: operation not permitted

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.