problem1:
You cannot use the new command inside an Angular CLI project.
solution:
該文件夾的父文件夾存在node_modules,yan.lock,package.json,統(tǒng)統(tǒng)刪掉即可。
problem2:
electron下載卡住
solution:
去https://npm.taobao.org/mirrors/electron下載對(duì)應(yīng)的版本
比如我是/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:
因?yàn)?fsevent是mac osx系統(tǒng)的碍彭,在win或者Linux下使用了 所以會(huì)有警告,忽略即可