简体   繁体   English

无法在 Mac 上的 Visual Studio Code 中为项目安装 NPM 包

[英]Unable to install NPM packages for project in Visual Studio Code on Mac

I will preface by saying I am a complete beginner at coding, and I signed up for the free trial of Pluralsight.我将首先说我是编码的初学者,并且我注册了 Pluralsight 的免费试用版。 I have spent the last four hours trying to get the very first project set up, as I have a mac and very few of the commands recommended by Pluralsight work on this computer.在过去的四个小时里,我一直在尝试设置第一个项目,因为我有一台 mac,而且 Pluralsight 推荐的命令很少能在这台计算机上运行。 The project, cloned from git, is called web-dev-starter.从 git 克隆的项目称为 web-dev-starter。 Currently, I am trying to connect the Node packages needed for the project using the command目前,我正在尝试使用命令连接项目所需的节点包

web-dev-starter> npm install 

This returns zsh: command not found: web-dev-starter这将返回zsh: command not found: web-dev-starter

I have tried a lot of things and nothing works.我已经尝试了很多东西,但没有任何效果。 Many thanks to whoever can help, I really want to learn to code and am considering buying a windows computer because trying to learn on a mac has been a nightmare!非常感谢任何可以提供帮助的人,我真的很想学习编码并正在考虑购买 Windows 计算机,因为尝试在 Mac 上学习一直是一场噩梦! Thanks!谢谢!

web-dev-starter> means the current directory from the file that you just clone. web-dev-starter>表示您刚刚克隆的文件的当前目录。 and after you are in that directory you just need to do npm install在您进入该目录后,您只需要执行npm install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM