New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm install dev show error #3613
Comments
I suggest to create new vue application (vue create) from scratch , after that run npm run serve, if the new application works fine do the following,
( plop-templates
npm i "axios" "clipboard" "codemirror" "core-js" "driver.js" "dropzone" "echarts" "element-ui" "file-saver" "fuse.js" "js-cookie" "jsonlint" "jszip" "normalize.css" "nprogress" "path-to-regexp" "pinyin" "screenfull" "script-loader" "sortablejs" npm i "vue-count-to" "vue-loaders" "vue-particles" "vue-splitpane" "vuedraggable" "xlsx"
.editorconfig plopfile.js Now the new vue application should work fine as "vue-element-admin" |
Thank you for the help I did without it. there was some dependency problem need some @bublecore dependency and npm update now works. Thanks for the great work. Keep it up.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: mrs01dev <notifications@github.com>
Sent: Thursday, February 25, 2021 5:01:54 AM
To: PanJiaChen/vue-element-admin <vue-element-admin@noreply.github.com>
Cc: Muhammad Younas <younaslook@outlook.com>; Author <author@noreply.github.com>
Subject: Re: [PanJiaChen/vue-element-admin] npm install dev show error (#3613)
I suggest to create new vue application (vue create) from scratch , after that run npm run serve, if the new application works fine delete src and dist folders from the new application.
From vue-element-admin app copy to the new vue application ,the following folders
(
build
mock
node_modules
plop-templates
public
src
tests
)
install missing dependencies to the new vue application , i.e.
npm i "axios" "clipboard" "codemirror" "core-js" "driver.js" "dropzone" "echarts" "element-ui" "file-saver" "fuse.js" "js-cookie" "jsonlint" "jszip" "normalize.css" "nprogress" "path-to-regexp" "pinyin" "screenfull" "script-loader" "sortablejs"
install missing devDependencies to the new vue application , i.e.
npm i -D "autoprefixer" "babel-core" "babel-eslint" "babel-jest" "chalk" "connect" "html-webpack-plugin" "mockjs" "runjs" "sass-loader" "script-ext-html-webpack-plugin" "script-loader" "serve-static" "svg-sprite-loader" "svgo" "vue-template-compiler"
update scripts section in package.json for the new vue application ,by coping scripts section from package.json in vue-element-admin.
After that copy remaining files -but not package.json- from vue-element-admin to the new vue application , i.e.
.editorconfig
.env.development
.env.production
.env.staging
.eslintignore
.eslintrc.js
.gitignore
.travis.yml
babel.config.js
jest.config.js
jsconfig.json
LICENSE
plopfile.js
postcss.config.js
README.es.md
README.ja.md
README.md
README.zh-CN.md
vue.config.js
the new vue application should work now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#3613 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALBFWY446AKJUTTEWGP2URLTAVSMFANCNFSM4YDVEXEA>.
|
AFTER ALL STEPS ABOVE ERROR Failed to compile with 1 error 01:49:57 error in ./src/styles/element-variables.scss Syntax Error: TypeError: this.getOptions is not a function @ ./src/styles/element-variables.scss 4:14-237 15:3-20:5 16:22-245 Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp' |
Question(提问)
Hello,
I followed all your step first I clone from GitHub then install npm then run npm run dev but its show ##error in ./src/main.js
it says Cannot find module '@babel/core'.
I tried to install with this command ##npm install babel-loader@7
but still not working.
Screenshot or Gif(截图或动态图)
`$ npm run dev
INFO Starting development server...
98% after emitting CopyPlugin
ERROR Failed to compile with 1 error 10:48:19 AM
error in ./src/main.js
Syntax Error: Error: [BABEL] C:\Users\Younas\IdeaProjects\Product-Borrow-Sell-Admin\src\main.js: Cannot find module '@babel/core'
Require stack:
@ multi (webpack)-dev-server/client?http://10.25.16.63:9527&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js`
Other relevant information(格外信息)
The text was updated successfully, but these errors were encountered: