Npm Electron app赢得';我跑不了。不知道为什么
键入npm start时,会出现以下错误:Npm Electron app赢得';我跑不了。不知道为什么,npm,electron,Npm,Electron,键入npm start时,会出现以下错误: npm ERR! errno 1 npm ERR! helloworld@1.0.0 start: `electron .` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the helloworld@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional lo
npm ERR! errno 1
npm ERR! helloworld@1.0.0 start: `electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the helloworld@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
这是package.json
{
"name": "helloworld",
"version": "1.0.0",
"description": "my app",
"main": "main.js",
"scripts": {
"start": "electron ."
},
"author": "kamalyaka",
"license": "MIT"
}
请提供帮助。您需要首先安装所有依赖项。 尝试执行
npm install
首先在项目目录中。
安装依赖项后,您可以执行
npm start
这将启动您的electron应用程序。您需要首先安装所有依赖项。 尝试执行
npm install
首先在项目目录中。
安装依赖项后,您可以执行
npm start
这将启动您的electron应用程序。您能否向我们提供
package.json
的完整日志和内容?缺少依赖项和实际错误。能否向我们提供package.json
的完整日志和内容?缺少依赖项和实际错误。