网站建设whjzyh,上海袜网站建设,企业邮箱网易登录入口,网页设计前端要学什么从npm版本3.8.6开始#xff0c;您可以使用npm install --prefix ./install/here 安装在指定的目录中。node_modules即使node_modules较高层次结构中已存在目录#xff0c;NPM 也会自动创建文件夹。您还可以package.json在当前目录中拥有a #xff0c;然后使用以下--prefix选…从npm版本3.8.6开始您可以使用npm install --prefix ./install/here 安装在指定的目录中。node_modules即使node_modules较高层次结构中已存在目录NPM 也会自动创建文件夹。您还可以package.json在当前目录中拥有a 然后使用以下--prefix选项将其安装在指定目录中npm install --prefix ./install/here从npm 6.0.0开始您可以使用npm install --prefix ./install/here ./将当前目录中的package.json安装到“./install/here”目录。我在Mac上注意到有一件事它会在node_modules目录中创建一个符号链接到父文件夹。但是它仍然有效。注意NPM遵循您通过该--prefix选项指定的路径。它根据文件夹上的npm文档解析仅在npm install没有--prefix选项的情况下使用。