Giter Site home page Giter Site logo

how to compile? about music HOT 18 CLOSED

sunzongzheng avatar sunzongzheng commented on August 20, 2024
how to compile?

from music.

Comments (18)

sunzongzheng avatar sunzongzheng commented on August 20, 2024
yarn build 

or

npm run build

"build": "node .electron-vue/build.js && electron-builder",

from music.

reionwong avatar reionwong commented on August 20, 2024

在 npm install 的时候出错了。

from music.

sunzongzheng avatar sunzongzheng commented on August 20, 2024

贴一下报错看看,是不是electron下不下来?

from music.

reionwong avatar reionwong commented on August 20, 2024

rekols@rekols-PC:~/web/music$ cnpm install
npm WARN deprecated [email protected]: babili has been renamed to babel-minify. Please update to babel-preset-minify
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @suen/electron-updater@^1.0.5
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'player'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR! /home/rekols/.npm/.cache/cnpm/_logs/2018-08-25T11_19_23_478Z-debug.log

from music.

sunzongzheng avatar sunzongzheng commented on August 20, 2024

再试一下。
原因是cnpm的包更新不及时,我刚刚已经刷新
或者直接换成npm就没有问题了,建议装依赖的时候开一下proxychains 😆 ,cnpm可能还会有其他奇怪的问题,例如cnpm装的包跟npm装的包不兼容,生成.lock文件后到vps上安装较慢等问题

from music.

reionwong avatar reionwong commented on August 20, 2024

神奇了

from music.

reionwong avatar reionwong commented on August 20, 2024

刚刚的cnpm install 一次就行了

from music.

sunzongzheng avatar sunzongzheng commented on August 20, 2024

cnpm可能比较流行的包才会同步的快,我这种私人发布,下载量极低的包,即使是两个月以前就更新了,也需要自己去手动同步...

from music.

reionwong avatar reionwong commented on August 20, 2024

A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module '@babel/runtime/core-js/promise'
at Module._resolveFilename (module.js:543:15)
at Function.Module._resolveFilename (/home/rekols/web/music/releases/linux-unpacked/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (module.js:473:25)
at Module.require (module.js:586:17)
at require (internal/module.js:11:18)
at Object. (/home/rekols/web/music/releases/linux-unpacked/resources/app.asar/node_modules/@suen/electron-updater/dist/github-adapter.js:10:39)
at Object. (/home/rekols/web/music/releases/linux-unpacked/resources/app.asar/node_modules/@suen/electron-updater/dist/github-adapter.js:121:3)
at Module._compile (module.js:642:30)
at Object.Module._extensions..js (module.js:653:10)
at Module.load (module.js:561:32)

from music.

reionwong avatar reionwong commented on August 20, 2024

运行的时候一直卡在了这 (

from music.

sunzongzheng avatar sunzongzheng commented on August 20, 2024

看一下node_modules目录下是不是没有'@babel/runtime/core-js/promise'这个包,把node_modules全删了,重新装一次试试

from music.

reionwong avatar reionwong commented on August 20, 2024

删了又执行了一下 cnpm install 还是一样。

from music.

sunzongzheng avatar sunzongzheng commented on August 20, 2024

node版本是多少?如果用npm装呢

from music.

reionwong avatar reionwong commented on August 20, 2024

node 版本是 10.9.0,我用npm装装看

from music.

reionwong avatar reionwong commented on August 20, 2024

npm安装也是这样

from music.

reionwong avatar reionwong commented on August 20, 2024

确实没有这个  @babel/runtime/core-js/promise

from music.

sunzongzheng avatar sunzongzheng commented on August 20, 2024

node回退到lts试试,8

from music.

sunzongzheng avatar sunzongzheng commented on August 20, 2024

@rekols 上次找不到@babel/runtime/core-js/promise解决了吗?又有一个windows的大兄弟遇到了,我这边调试了一下,发现用npm装就会没有这个文件夹,用yarn安装就有

from music.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.