我试图使用npm start
的项目,看看它在我的浏览器上运行。
它给我以下错误:
PS C:\Users\JUSTIN\Documents\GitHub\myPortfolio> npm start
npm ERR! Missing script: "start"
npm ERR!
npm ERR! Did you mean one of these?
npm ERR! npm star # Mark your favorite packages
npm ERR! npm stars # View packages marked as favorites
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: C:\Users\JUSTIN\AppData\Local\npm-cache\_logs\2023-06-19T06_04_59_628Z-debug-0.log
PS C:\Users\JUSTIN\Documents\GitHub\myPortfolio> npm install-script
1条答案
按热度按时间prdp8dxp1#
缺少脚本:“开始”
这最有可能的问题。检查package.json文件中的脚本“start”,它可能不在那里。或者,尝试
npm run start
。