如何解决Vuepress - 使用 npm 运行开发者模式
我是 Vuepress 的新手。我想做测试。
我已经按照以下步骤创建了:
npm create vuepress vuepress-test
cd vuepress-test
npm init -y
Wrote to /Users/xxxxx/Documents/Projects-DcodeSystem/vuepress-test/package.json:
{
"name": "vuepress-test","version": "0.0.1","description": ">","main": "index.js","authors": {
"name": "","email": ""
},"repository": {
"type": "git","url": "/vuepress-test"
},"scripts": {
"dev": "vuepress dev blog","build": "vuepress build blog"
},"license": "MIT","devDependencies": {
"vuepress": "^1.3.1","@vuepress/theme-blog": "^2.1.0"
},"keywords": [],"author": ""
}
现在我想运行我的开发服务器。
我在我的工作文件夹中看到了这个命令,我运行这个命令:
vuepress dev
不幸的是终端显示此错误消息:
zsh: command not found: vuepress
在这一点上,我认为问题在于我的 shell 中没有 vuepress 框架的安装程序...
我在我的环境中使用 npm 包管理器。
已解决:
npm install
在开发模式下运行:
npm run dev
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。