Some Problems

problem1:

You cannot use the new command inside an Angular CLI project.

solution:

该文件夹的父文件夹存在node_modules,yan.lock,package.json,统统删掉即可。

problem2:

electron下载卡住

solution:

去https://npm.taobao.org/mirrors/electron下载对应的版本
比如我是/1.6.10/,那就将/1.6.10/下的所有文件都下载下来
放到~/.electron目录下

problem3:

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 fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN codelyzer@2.1.1 requires a peer of tslint@^4.0.0 but none was installed.

solution:

因为 fsevent是mac osx系统的,在win或者Linux下使用了 所以会有警告,忽略即可
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容