ReactJS+NodeJS:什么是错误"传递--update binary以重新安装或--build fro
ReactJS + NodeJS: What is error "Pass --update-binary to reinstall or --build-from-source to recompile"?
我将ReactJS+NodeJS项目从另一台计算机转移到了一台新计算机上。然后在文件夹中,我在终端中执行了npm install
,但得到了以下响应。
> fsevents@1.0.14 install /Users/Joshua/Projects/practice_project/node_modules/fsevents
> node-pre-gyp install --fallback-to-build
[fsevents] Success: "/Users/Joshua/Projects/practice_project/node_modules/fsevents/lib/binding/Release/node-v46-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
在以前的计算机上,我通过npm run server
运行该项目,但当我在新计算机上的项目中npm run server
之后执行时,现在我得到:
> practice_project@1.0.0 serve /Users/Joshua/Projects/practice_project
> nodemon server/server.js --ignore components
sh: nodemon: command not found
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "serve"
npm ERR! node v4.6.1
npm ERR! npm v2.15.9
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! practice_project@1.0.0 serve: `nodemon server/server.js --ignore components`
npm ERR! spawn ENOENT
我环顾四周,但似乎找不到正确的解决方案。尝试了npm install -g node-gyp
,但得到了tar.unpack untar error
。
可能是什么问题?将投赞成票并接受答案。非常感谢。
在这种情况下,您收到的第一条消息只是告诉您,它正在尝试为您的环境重新构建fsevents
包,然后意识到它已经构建好了,因此停止了该过程。
第二条消息表示您正在尝试运行nodemon
,但尚未安装。我大胆猜测,它是全局安装在您以前的机器上的(因此不包括在项目的package.json
中(。如果您想再次全局安装它,则需要运行npm i -g nodemon
。
相关文章:
- chrome.tabs.update() 重定向到 'chrome-extension://invalid/'
- 在node.js-mysql中执行UPDATE查询不起作用
- Underscore each to update collection
- Visual Studio 2015 Update 2-'中的TypeScript模块;要求'未定义
- Java 8 Update 91 Issue
- .bind('all', 'update')上的主干怪异类型错误错误
- jQuery update cookie value
- Google Fusion Table Javascript UPDATE Query?
- jQuery to pass Checkbox Update mysql
- Ajax jquery mysqli update
- Javascript Eventlistener for Update / Change on Element / in
- 在JS中从Dec转换为Binary
- 正在更新'堆叠列'chart:update()或setData()
- extjs存储有时调用create而不是update
- Meteor Update集合-未捕获错误:不允许.不受信任的代码只能通过ID更新文档.[403]
- Javascript for while with mysql update when not having value
- ractivejs observe init vs set/push/update
- jQuery datetimepicker does not update minDate
- mongoose findOne, update and exec
- ReactJS+NodeJS:什么是错误"传递--update binary以重新安装或--build fro