node.js,Angular CLI 已经安装。
cnpm install
应该是环境不对吧,各位帮忙指点一下!谢谢(搜不到)
ng g component product1
已经设置了:ng set --global warnings.versionMismatch=false
报错如下:
Your global Angular CLI version (1.4.9) is greater than your local
version (1.4.7). The local Angular CLI version is used.
To disable this warning use "ng set --global warnings.versionMismatch=false".
Error: ELOOP: too many symbolic links encountered, stat 'E:auctionnode_modules@angularclinode_moduleswebpacknode_modulesescopenode_moduleses6-mapnode_modulesdnode_moduleses5-extnode_moduleses6-iterato
rnode_modulesdnode_moduleses5-extnode_moduleses6-iteratornode_modulesdnode_moduleses5-extnode_moduleses6-iteratornode_modulesdnode_moduleses5-extnode_moduleses6-iteratornode_modulesdnode_modules\
es5-extnode_moduleses6-iteratornode_modulesdnode_moduleses5-extnode_moduleses6-iteratornode_modulesdnode_moduleses5-extnode_moduleses6-iteratornode_modulesdnode_moduleses5-extnode_moduleses6-itera
tornode_modulesdnode_moduleses5-extnode_moduleses6-iteratornode_modulesd'
新报错
npm WARN gentlyRm not removing E:auctionnode_modules.binwebdriver-manager.cmd as it wasn't installed by E:auctionnode_moduleswebdriver-manager
npm WARN gentlyRm not removing E:auctionnode_modules.binwebdriver-manager as it wasn't installed by E:auctionnode_moduleswebdriver-manager
npm WARN license-webpack-plugin@1.1.1 requires a peer of webpack-sources@>=1.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-middleware@1.12.0 requires a peer of webpack@^1.0.0 || ^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules_chokidar@1.7.0@chokidarnode_modulesfsevents):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'E:auctionnode_modules.stagingfsevents-47537c5bnode_modulesabbrev' -> 'E:auctionnode_modules.stagingabbrev-1a5ac37a'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules_chokidar@1.7.0@chokidarnode_modulesfsevents):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'E:auctionnode_modules.stagingfsevents-47537c5bnode_modulesabbrev' -> 'E:auctionnode_modules.stagingabbrev-1a5ac37a'
npm ERR! path E:auctionnode_modules@angular-devkitbuild-optimizernode_modulessource-map
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'E:auctionnode_modules@angular-devkitbuild-optimizernode_modulessource-map' -> 'E:auctionnode_modules@angular-devkitbuild-optimizernode_modulessou
rce-map'
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:Usersweiming.yangAppDataRoamingnpm-cache_logs2017-10-31T23_51_02_329Z-debug.log
两个问题。
一是Angular Cli全局版本低于项目版本,这个警告可以忽略它,或者升级。
二是,关于 ELOOP: too many symbolic links encountered 的错误,我想应该是
cnpm
引起的,建立使用:或,直接: