【问题标题】:npm uninstall doesn't really uninstall on azurenpm uninstall 并没有真正在 azure 上卸载
【发布时间】:2013-05-03 06:49:32
【问题描述】:

我正在使用 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

【问题讨论】:

  • 您是否从您的 package.json 中删除了它?您可以通过 npm uninstall db-mysql --save 自动执行此操作
  • 我手动删除了它,然后从 azure 创建了新网站并再次提交,但没有任何改变。它从某个地方到达 db-mysql。我找不到

标签: git node.js azure


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2016-10-22
    • 1970-01-01
    • 2020-01-21
    • 2022-01-21
    • 1970-01-01
    • 2017-01-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多