这是我键入命令npm new project0后遇到的错误问题
npm ERR! path D:\Polytech\Génie Informatique\2- Génie Informatique 4\Programmation Web\Angular\project0\node_modules\js-yaml\bin\js-yaml.jsnpm
ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'D:\Polytech\Génie Informatique\2- Génie Informatique 4\Programmation Web\Angular\project0\node_modules\js-yaml\bin\js-yaml.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\awouf\AppData\Roaming\npm-cache\_logs\2019-11-22T08_25_38_203Z-debug.log
Package install failed, see above.
答案 0 :(得分:0)
您应该尝试关注
npm install angular/cli //This command will install your angular/cli locally
ng new project0 //This will create new angular/cli project
cd project0 //You will have to CD into project directory
ng serve --open // Run your application and open browser
您可以查看Angular CLI文档以获取更多信息https://cli.angular.io/