Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在Surge上部署前端站点,但是当我尝试将 Surge 客户端安装到 osx 中时
npm install --global 激增
我收到以下错误消息
没有这样的文件或目录,打开'/Users/mac/package.json'
在 Surge 入门页面中没有提及此错误。
我的 nodejs 版本是 8.9.4 有人有同样的问题吗?谢谢
看这里我发现了问题。
所以而不是使用
npm install --global surge
我应该使用
npm install --g surge