npm install hangs on extracting faker
Solution 1
-
ember-cli
is having another dependency calledember-cli-mirage
which is dependant onfaker
. - On previous machine, check what versions are there for
node, npm, ember-cli, bower and phantomjs-prebuilt
. -
Either you can use same versions. Or try clearing cache and updating only npm using:
npm cache clean npm i -g npm
Updated Answer
Now that you are receiving following error:
extract:core-js: sill extract [email protected]
I dig up more and found that your [email protected]
is using [email protected]
version which in turn uses [email protected]
. If you go to npm@babel-eval-plugin, you will find there github repository link which no longer exist and move to npm@babel-plugin-transform-eval. Hence, this issue might be occurring.
Overall, your ember-cli version 2.13.x
is having some not supporting libraries. I will suggest you to upgrade your ember-cli version as mentioned in there release documentation.
npm install -g [email protected] rimraf rimraf node_modules dist tmp npm install --save-dev [email protected] npm install ember init
I will also suggest to re-clone your repository on fresh location and try these instructions their.
Solution 2
I don't know exactly why, but I had the same issue and when changing "something" in my package.json (not a dependency update, just i.e. my package.json version) the npm install worked again.
Viktor
Updated on June 11, 2022Comments
-
Viktor almost 2 years
I'm trying to get working my project based on EmberJS on another computer. I've cloned the repo, and when I'm trying to run
npm install
it hangs on extracting Faker package.extract:faker: verb gentlyRm don't care about contents; nuking C:\Users\Babanov.Viktor\PhpstormProjects\IdeaPlannerFront\node_modules.staging\faker-c7ff04ca\node_modules
I tried to wait for a couple of hours, and nothing changed. Removing of the
.stage
directory didn't give any effect.Here are my
package.json
contents:{ "name": "idea-planner-ember", "version": "0.0.0", "description": "Small description for idea-planner-ember goes here", "license": "MIT", "author": "", "directories": { "doc": "doc", "test": "tests" }, "repository": "", "scripts": { "build": "ember build", "start": "ember server", "test": "ember test" }, "devDependencies": { "bootstrap": "^3.3.7", "broccoli-asset-rev": "^2.4.5", "ember-ajax": "^3.0.0", "ember-cli": "^2.13.1", "ember-cli-app-version": "^3.0.0", "ember-cli-babel": "^6.0.0", "ember-cli-dependency-checker": "^1.3.0", "ember-cli-eslint": "^3.0.0", "ember-cli-htmlbars": "^1.1.1", "ember-cli-htmlbars-inline-precompile": "^0.4.0", "ember-cli-inject-live-reload": "^1.4.1", "ember-cli-mirage": "^0.3.1", "ember-cli-qunit": "^4.0.0", "ember-cli-shims": "^1.1.0", "ember-cli-sri": "^2.1.0", "ember-cli-uglify": "^1.2.0", "ember-data": "^2.13.0", "ember-export-application-global": "^2.0.0", "ember-load-initializers": "^1.0.0", "ember-resolver": "^4.0.0", "ember-source": "~2.13.0", "ember-welcome-page": "^3.0.0", "loader.js": "^4.2.3" }, "engines": { "node": ">= 4" }, "private": true, "dependencies": { "ember-bootstrap": "^1.0.0-alpha.12", "ember-simple-auth": "^1.3.0", "ember-cli-flash": "^1.4.2", "ember-cli-sentry": "^2.4.4" } }
Node.js 6.11.2
npm 5.3.0
UPD.
I deleted
node_modules
directory, installedphantomjs-prebuilt
, changedember-cli-mirage
version to the latest stable for me (0.3.1) and explicitly installedfaker
withnpm i --save-dev [email protected]
(this version is required byember-cli-mirage
). Now whennpm i
npm doesn't try to installfaker
once more. But the error is still here.npm
hangs onextract:core-js: sill extract [email protected]
I guess it is the next plugin to extract after the
faker
.