Reactjs 节点sass chokidar不';t在npm安装上安装

Reactjs 节点sass chokidar不';t在npm安装上安装,reactjs,ubuntu,nginx,npm,node-sass,Reactjs,Ubuntu,Nginx,Npm,Node Sass,我有一个使用CreateReact应用程序创建的react应用程序 为了编译sass文件,我使用了中推荐的节点sass chokidar 它在我的本地机器(OSX)上安装并运行良好。但是当我将它添加到我的生产服务器(运行nginx的ubuntu14.04.5x32)并运行 它没有安装。我可以通过检查未显示的/node_modules文件夹(在我的本地计算机上也是如此)来看到这一点 Sass安装在服务器上 当我运行npm安装时,我在第一次运行它时遇到了这个错误 > fsevents@1.0.

我有一个使用CreateReact应用程序创建的react应用程序

为了编译sass文件,我使用了中推荐的节点sass chokidar

它在我的本地机器(OSX)上安装并运行良好。但是当我将它添加到我的生产服务器(运行nginx的ubuntu14.04.5x32)并运行

它没有安装。我可以通过检查未显示的/node_modules文件夹(在我的本地计算机上也是如此)来看到这一点

Sass安装在服务器上

当我运行npm安装时,我在第一次运行它时遇到了这个错误

> fsevents@1.0.17 install 
/var/www/bertgenerator.com/html/node_modules/fsevents
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/bin/nodejs',
node-pre-gyp verb cli '/var/www/bertgenerator.com/html/node_modules/fsevents/node_modules/.bin 
node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@6.11.0 | linux | ia32
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/var/www/bertgenerator.com/html/node_modules/fsevents/lib/binding/Release/node-v48-linux-ia32/fse.node" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v48-linux-ia32.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v48-linux-ia32.tar.gz
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v48-linux-ia32.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.0.17 and node@6.11.0 (node-v48 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.17/fse-v1.0.17-node-v48-linux-ia32.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
make: Entering directory `/var/www/bertgenerator.com/html/node_modules/fsevents/build'
  SOLINK_MODULE(target) Release/obj.target/.node
  COPY Release/.node
make: Leaving directory `/var/www/bertgenerator.com/html/node_modules/fsevents/build'
node-pre-gyp info ok
我不知道这是否有关系。如果我再次运行npm安装,我不会得到错误

我已尝试删除/node_modules文件夹并运行

npm cache clean
以及

sudo npm install
试一试

这对我有用,当我的

sudo npm install -g
没有安装chokidar。更多关于npm chokidar的信息

npm install chokidar --save
sudo npm install -g