0

After cloning the project code from the Repository, I'm trying to install the npm to update the packages and plugins included. The command used is:

npm install

It worked well for previous clones. But now it displays the following error:

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.12
npm WARN appname@ No repository field.
npm WARN appname@ No license field.

When I tried to install fsevents using --verbose, it is said that the supported OS is Darwin. But it worked in the previous clone. Why not now?

4

1 回答 1

1

如果您是 Windows 用户:

fsevents 警告不是问题。这是一个可选的依赖项,不需要它在 Windows 上工作。

但是错误仍然显示,为了解决这个问题。

  • 打开 package.json 并删除 gulp-watch 依赖项
  • 从 node_modules fordel 中手动删除文件夹(gulp-watch)
  • 卸载项目并再次上传

错误消失了!!!

在 .net core 中有一个问题可以解决这个问题,但这将一直有效。

于 2016-07-19T03:58:20.573 回答