Closed estellederrien closed 1 year ago
C:\UwAmp\www\vue-light-bootstrap-dashboard-master>npm install --save core-js/modules/es6.regexp.to-string npm ERR! code ENOLOCAL npm ERR! Could not install from "core-js\modules\es6.regexp.to-string" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\nicolas\AppData\Roaming\npm-cache_logs\2019-11-01T08_13_32_419Z-debug.log
I get this too - on Linux Ubuntu 18.04; Node v10.16.3
I added core-js to package.json and it worked.
diff --git a/package.json b/package.json
index 2131df2..e83706e 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,7 @@
"deploy": "npm run build && cd docs && npm install && npm run build && cd .. && gh-pages -d dist"
},
"dependencies": {
+ "core-js": "^2.6.11",
"bootstrap": "^4.3.1",
The latest 3.4.8 core-js version doesn't work though, only 2.x seems to work - which is deprecated.
I solved this problem by following steps. 1, run [ npm install core-js] for installing core-js of version 3. 2, change .babelrc file located at the root folder from { "presets": [ [ "@vue/app", { "polyfills": ["es7.object.entries", "es6.promise"] } ] ] }
to
{ "presets": [["@vue/app", { "useBuiltIns": "entry" }]] }
It seems works.
I solved this problem by following steps. 1, run [ npm install core-js] for installing core-js of version 3. 2, change .babelrc file located at the root folder from { "presets": [ [ "@vue/app", { "polyfills": ["es7.object.entries", "es6.promise"] } ] ] }
to
{ "presets": [["@vue/app", { "useBuiltIns": "entry" }]] }
It seems works.
work for me
This dependency was not found:
To install it, you can run: npm install --save core-js/modules/es6.regexp.to-string