“如何修复”;npm错误!addLocal无法安装";
我在尝试将Phoenix应用程序推送到Heroku时出错 我一直在跟踪调查 导致此错误的原因是什么?如何修复“如何修复”;npm错误!addLocal无法安装";,npm,elixir,phoenix-framework,Npm,Elixir,Phoenix Framework,我在尝试将Phoenix应用程序推送到Heroku时出错 我一直在跟踪调查 导致此错误的原因是什么?如何修复 WARNING: phoenix_static_buildpack.config wasn't found in the app remote: Using default config from Phoenix static buildpack remote: Will use the following versions: remote: *
WARNING: phoenix_static_buildpack.config wasn't found in the app
remote: Using default config from Phoenix static buildpack
remote: Will use the following versions:
remote: * Node 6.9.2
remote: Will export the following config vars:
remote: * Config vars DATABASE_URL
remote: * MIX_ENV=prod
remote:
remote: -----> Installing binaries
remote: Downloading node 6.9.2...
remote: Installing Node 6.9.2...
remote: Using default npm version
remote:
remote: -----> Building dependencies
remote: Installing and caching node modules
remote: npm ERR! addLocal Could not install /tmp/build_23f60aac277eab15b4ce274dcaf9bb16/deps/phoenix
remote: npm ERR! addLocal Could not install /tmp/build_23f60aac277eab15b4ce274dcaf9bb16/deps/phoenix_html
remote: npm ERR! Linux 3.13.0-105-generic
remote: npm ERR! argv "/tmp/build_23f60aac277eab15b4ce274dcaf9bb16/.heroku/node/bin/node" "/tmp/build_23f60aac277eab15b4ce274dcaf9bb16/.heroku/node/bin/npm" "install" "--quiet" "--unsafe-perm" "--userconfig" "/tmp/build_23f60aac277eab15b4ce274dcaf9bb16/npmrc"
remote: npm ERR! node v6.9.2
remote: npm ERR! npm v3.10.9
remote: npm ERR! path /tmp/build_23f60aac277eab15b4ce274dcaf9bb16/deps/phoenix
remote: npm ERR! code ENOENT
remote: npm ERR! errno -2
remote: npm ERR! syscall open
remote:
remote: npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_23f60aac277eab15b4ce274dcaf9bb16/deps/phoenix'
remote: npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_23f60aac277eab15b4ce274dcaf9bb16/deps/phoenix'
remote: npm ERR! enoent This is most likely not a problem with npm itself
remote: npm ERR! enoent and is related to npm not being able to find a file.
remote: npm ERR! enoent
remote:
remote: npm ERR! Please include the following file with any support request:
remote: npm ERR! /tmp/build_23f60aac277eab15b4ce274dcaf9bb16/npm-debug.log
remote: ! Push rejected, failed to compile Phoenix app.
我和你以前有同样的问题。尝试将npm版本添加到phoenix_static_buildpack.config文件中 以下是我的应用程序示例: phoenix_static_buildpack.config(在根目录中) 您还可以设置 elixir_buildpack.config(也在根目录中)
我和你以前有同样的问题。尝试将npm版本添加到phoenix_static_buildpack.config文件中 以下是我的应用程序示例: phoenix_static_buildpack.config(在根目录中) 您还可以设置 elixir_buildpack.config(也在根目录中)
从输出来看,您的节点似乎已更新,而npm未更新。也许手动更新npm?在这里找到了可能的解决方案:我已经尝试过这个(在问问题之前找到了那个线程),但它没有帮助。谢谢你的想法。你试过使用sudo吗?是的,我也用sudo运行过hat命令。从输出来看,你的节点似乎更新了,而npm没有。也许手动更新npm?在这里找到了可能的解决方案:我已经尝试过这个(在问问题之前找到了那个线程),但它没有帮助。谢谢你的主意。你试过使用sudo吗?是的,我也用sudo运行过hat命令。
clean_cache=false
compile="compile"
config_vars_to_export=(DATABASE_URL)
node_version=6.9.5
npm=3.10.8
phoenix_relative_path=.
remove_node=false
erlang_version=18.3
elixir_version=1.4.0
always_rebuild=false
runtime_path=/app