Vue-cli: Maximum call stack size exceeded when creating new vue cli 3 project

Created on 21 Sep 2018  路  6Comments  路  Source: vuejs/vue-cli

Version

3.0.3

Node and OS info

Node 8.12.0 / npm 6.4.1 / OSx 10.13.4

Steps to reproduce

vue create project_name

What is expected?

Project being created

What is actually happening?

The following error:

npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ilrock/.npm/_logs/2018-09-21T12_44_37_935Z-debug.log
ERROR command failed: npm install --loglevel error

cannot reproduce

Most helpful comment

Ok yea, broken cache. npm cache clean --force worked. And they advertise this cache as "self-healing", mhm

All 6 comments

i have same issue
node 8.11.4 / npm 5.6.0 / vue 3.0.3 / win10

UPDATE:
solved by using taoabo mirror
in .vuerc set "useTaobaoRegistry" to true

Can't reproduce. Could you provide a more detailed error log?

Here are two:

Using the Taobao mirror doesn't make a difference for me and I'm trying to create a featureful app, with basically everything (using Nightwatch and TSLint).

4780 http fetch GET 200 https://registry.npmjs.org/@webassemblyjs%2fwast-printer 2ms (from cache)
4781 silly fetchPackageMetaData error for @webassemblyjs/[email protected] Unexpected end of JSON input while parsing near '..."}},"1.7.8":{"name":"'

Network issue or broken cache. Try to run npm cache verify and then run installation again.

Ok yea, broken cache. npm cache clean --force worked. And they advertise this cache as "self-healing", mhm

Same issue, npm cache clean --force does not help

npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vagrant/.npm/_logs/2018-12-03T09_15_51_621Z-debug.log
 ERROR  command failed: npm install --loglevel error

/home/vagrant/.npm/_logs/2018-12-03T09_15_51_621Z-debug.log:

21411 warn @vue/[email protected] requires a peer of vue-template-compiler@^2.0.0 but none is installed. You must insta$21412 warn [email protected] requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies y$21413 verbose stack RangeError: Maximum call stack size exceeded
21413 verbose stack     at RegExp.test (<anonymous>)
21413 verbose stack     at isDepOptional (/usr/local/lib/node_modules/npm/lib/install/deps.js:398:27)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:414:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21413 verbose stack     at failedDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:430:9)
21414 verbose cwd /var/www/rentcar/app
21415 verbose Linux 4.15.0-22-generic
21416 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--loglevel" "error"
21417 verbose node v11.2.0
21418 verbose npm  v6.4.1
21419 error Maximum call stack size exceeded
21420 verbose exit [ 1, true ]
Was this page helpful?
0 / 5 - 0 ratings