Closed Paalon closed 5 years ago
Did you pull the latest commit from master branch?
It seems this is a yarn problem: yarn can't run scripts in package.json #1045.
try uninstall yarn and reinstalling it through a different method
or just
npm run dev
All hail npm
My package.json doesn't have scripts dev
{
"name": "boost",
"productName": "Boostnote",
"version": "0.11.5",
"main": "index.js",
"description": "Boostnote",
"license": "GPL-3.0",
"scripts": {
"start": "electron ./index.js",
"hot": "electron ./index.js --hot",
"webpack": "webpack-dev-server --hot --inline --config webpack.config.js",
"compile": "grunt compile",
"test": "PWD=$(pwd) NODE_ENV=test ava --serial",
"jest": "jest",
"fix": "eslint . --fix",
"lint": "eslint .",
"dev-start": "concurrently --kill-others \"npm run webpack\" \"npm run hot\""
},
"config": {
"electron-version": "1.8.7"
}, ......
Then it's not the yarn issue. You don't have the latest code. You must pull the new code to your local repo. Take a look at the latest package.json https://github.com/BoostIO/Boostnote/blob/37933782d2e0364dc29b94b60bc00ae28f8f5161/package.json#L1-L19
or just
npm run dev
All hail npm
Thank you (as someone teaching myself, this comment has made my day)
这种问题,我在输入npm run dev,还是没有解决之后输出的结果是: yarn run v1.22.19 error Command "dev" not found. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
C:\Users\Administrator>npm run dev
npm ERR! Missing script: "dev"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Local\npm-cache_logs\2023-02-03T20_01_49_772Z-debug-0.log
这种问题,我在输入npm run dev,还是没有解决之后输出的结果是: yarn run v1.22.19 error Command "dev" not found. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
C:\Users\Administrator>npm run dev npm ERR! Missing script: "dev" npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Local\npm-cache_logs\2023-02-03T20_01_49_772Z-debug-0.log
i have the same question, how do you solve it
According to the document, to build Boostnote, do
yarn
thenyarn run dev
but it emits the following error:As far as I see the package.json, it seems the documentation is not updated.