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, installed phantomjs-prebuilt, changed ember-cli-mirage version to the latest stable for me (0.3.1) and explicitly installed faker with npm i --save-dev [email protected] (this version is required by ember-cli-mirage). Now when npm i npm doesn't try to install faker once more. But the error is still here. npm hangs on
extract:core-js: sill extract [email protected]
I guess it is the next plugin to extract after the faker.
ember-cliis having another dependency calledember-cli-miragewhich is dependant onfaker.node, npm, ember-cli, bower and phantomjs-prebuilt.Either you can use same versions. Or try clearing cache and updating only npm using:
Updated Answer
Now that you are receiving following error:
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.xis having some not supporting libraries. I will suggest you to upgrade your ember-cli version as mentioned in there release documentation.I will also suggest to re-clone your repository on fresh location and try these instructions their.