[英]spawn-sync post install fails during React native starter kit installation on Ubuntu
[英]Heroku cannot find module 'spawn-sync'
我試圖安裝我的節點項目以在線運行,但是當我嘗試推送到heroku master時出現錯誤。 我按照以下步驟操作: https : //devcenter.heroku.com/articles/getting-started-with-nodejs#push-local-changes第一個錯誤是:
remote: > node lib/install.js
remote:
remote: module.js:338
remote: throw err;
remote: ^
remote: Error: Cannot find module 'spawn-sync'
remote: at Function.Module._resolveFilename (module.js:336:15)
remote: at Function.Module._load (module.js:278:25)
remote: at Module.require (module.js:365:17)
remote: at require (module.js:384:17)
remote: at Object.<anonymous> check/index.js:5:17)
我試圖用npm install spawn-sync --save
安裝de module並npm install spawn-sync --save
git add -A
和git commit -m "added spawn-sync"
然后再次嘗試git push heroku master
但是錯誤不斷出現。 我在分支機構工作,並且在應用程序的根文件夾中。 有誰知道如何解決這一問題
確保您在master分支上。 如果您不在master
工作,則應像git push heroku branchYouAreOn:master
一樣推送到heroku。
確保在您的package.json文件的dependencies
中列出了spawn-sync
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.