2015-11-03 73 views
0

我在面對這個問題找到了一個類似的問題:Win 8.1, Vagrant, Chef, Ubuntu, Ember-cli, ember new "npm ERR! tar.unpack untar error /home/vagrant/.npm/"NPM安裝燼-CLI最大調用堆棧大小超出

我試圖更新使用新的餘燼-CLI舊的餘燼項目2.1。 我在流浪服務器上運行我的項目。我有節點(v.0.12.7),npm(3.3.10),bower(1.6.5), 和ember-cli -g(版本:1.13.8,節點:0.12.7,npm: 2.13.4,os:linux x64)安裝。

然而,每當我跑由燼初始化我收到以下錯誤生成項目「NPM安裝--no斌鏈接」:

51716 error tar.unpack untar error /home/vagrant/.npm/ember-cli/1.13.8/package.tgz 
51717 verbose stack RangeError: Maximum call stack size exceeded 
51717 verbose stack  at Array.filter (native) 
51717 verbose stack  at /usr/lib/node_modules/npm/lib/install/actions.js:55:37 
51717 verbose stack  at Array.forEach (native) 
51717 verbose stack  at markAsFailed (/usr/lib/node_modules/npm/lib/install/actions.js:54:16) 
51717 verbose stack  at /usr/lib/node_modules/npm/lib/install/actions.js:57:7 
51717 verbose stack  at Array.forEach (native) 
51717 verbose stack  at markAsFailed (/usr/lib/node_modules/npm/lib/install/actions.js:54:16) 
51717 verbose stack  at /usr/lib/node_modules/npm/lib/install/actions.js:57:7 
51717 verbose stack  at Array.forEach (native) 
51717 verbose stack  at markAsFailed (/usr/lib/node_modules/npm/lib/install/actions.js:54:16) 
51718 verbose cwd /at/Site/public/preview/EP 
51719 error Linux 3.2.0-4-amd64 
51720 error argv "node" "/usr/bin/npm" "i" 
51721 error node v0.12.7 
51722 error npm v3.3.10 
51723 error Maximum call stack size exceeded 
51724 error If you need help, you may report this error at: 
51724 error  <https://github.com/npm/npm/issues> 
51725 verbose exit [ 1, true ] 

這是關係到不同的版本號npm(全球和呃)或者這是在我的流浪設置?這個問題不是由Windows最大路徑長度引起的,我已經檢查過。

編輯

我試圖安裝NPM包分開,而不是與「NPM安裝--no斌鏈接」。唯一的失敗是「npm install --no-bin-links [email protected]」。這些都是我的package.json中的依存關係:

"broccoli-asset-rev": "^2.1.2", 
"ember-cli": "1.13.8", 
"ember-cli-app-version": "0.5.0", 
"ember-cli-babel": "^5.1.3", 
"ember-cli-content-security-policy": "0.4.0", 
"ember-cli-dependency-checker": "^1.0.1", 
"ember-cli-htmlbars": "0.7.9", 
"ember-cli-htmlbars-inline-precompile": "^0.2.0", 
"ember-cli-ic-ajax": "0.2.1", 
"ember-cli-inject-live-reload": "^1.3.1", 
"ember-cli-qunit": "^1.0.0", 
"ember-cli-release": "0.2.3", 
"ember-cli-sri": "^1.0.3", 
"ember-cli-uglify": "^1.2.0", 
"ember-data": "1.13.8", 
"ember-disable-proxy-controllers": "^1.0.0", 
"ember-export-application-global": "^1.0.3" 

謝謝您的時間

回答

0

我已經解決我的問題。

事實證明,我的文件夾安裝在我的流浪者的方式是如此之慢,它干擾我的npm安裝。 在我的流浪漢文件的文件夾中安裝像這樣:

config.vm.synced_folder "../", "/at" 

我這個替代它:

config.vm.provision "shell", run: "always" do |s| 
    s.inline = "sudo apt-get update 
    sudo bash /vagrant/mountfolder.sh" 
end 

而旁邊我流浪的文件,我已經放在一個文件「mountfolder.sh 「

# replace your username and password with for example: user, ****. Replace YOURSHARENAME with the name of your windows share 
# mountpoint checks if share is already mounted, prevents warning when provisioning 
mountpoint -q /projects|| (mkdir /projects -p && apt-get -y install cifs-utils && mount -t cifs //192.168.255.1/YOURSHARENAME /projects --verbose -o 'user=dkdomain.intra\YOURUSERNAME,password=YOURPASSWORD,rw,uid=vagrant,gid=vagrant,file_mode=0777,dir_mode=0777') 

在哪裏用必需的信息替換大寫字母。

相關問題