0

我正在使用 Windows Azure。在我的本地存储库中,我删除了 db-mysql

npm uninstall db-mysql

当我尝试推送存储库时,它会给出该错误。我知道windows不支持db-mysql,但我不能删除那个包。我应该怎么办?

remote: The node.js application will run with the default node.js version 0.6.20.
remote: 
remote: > db-mysql@0.7.6 install C:\DWASFiles\Sites\lpserver\VirtualDirectory0\site\wwwroot\node_modules\db-mysql
remote: > node-waf configure build
remote: 
remote: 'node-waf' is not recognized as an internal or external command,
remote: operable program or batch file.
remote: An error has occurred during web site deployment.
remote: npm ERR! db-mysql@0.7.6 install: `node-waf configure build`
remote: npm ERR! `cmd "/c" "node-waf configure build"` failed with 1
remote: npm ERR! 
remote: npm ERR! Failed at the db-mysql@0.7.6 install script.
remote: npm ERR! This is most likely a problem with the db-mysql package,
remote: npm ERR! not with npm itself.
remote: npm ERR! Tell the author that this fails on your system:
remote: npm ERR!     node-waf configure build
remote: 
remote: npm ERR! You can get their info via:
remote: npm ERR!     npm owner ls db-mysql
remote: npm ERR! There is likely additional logging output above.
remote: 
remote: npm ERR! System Windows_NT 6.1.7601
remote: npm ERR! command "node" "D:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production"
remote: npm ERR! cwd C:\DWASFiles\Sites\lpserver\VirtualDirectory0\site\wwwroot
remote: npm ERR! node -v v0.6.20
remote: npm ERR! npm -v 1.1.37
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! message db-mysql@0.7.6 install: `node-waf configure build`
remote: npm ERR! message `cmd "/c" "node-waf configure build"` failed with 1
4

1 回答 1

0

在存储库的根目录中,您应该有一个package.json文件,编辑该文件以删除对 的引用db-mysql,然后提交更改并推送更新的存储库。

于 2013-05-02T22:49:32.333 回答