我是角度新手,当我在特定文件夹中运行ng new prj-name
命令时,我收到以下错误消息:
npm ERR!
enoent ENOENT: no such file or directory,
rename 'Desktop\angular\angular-intro\node_modules\@angular-devkit\build-optimizer\node_modules\typescript' ->
'Desktop\angular\angular-intronode_modules\@angular-devkit\build-optimizer\node_modules\.typescript.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
我的计算机上有以下版本的节点和角度:
C:\Users\lin0x\Desktop\angular>node -v
v9.9.0
C:\Users\lin0x\Desktop\angular>ng -v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 1.7.3
Node: 9.9.0
OS: win32 x64
Angular:
...