[英]I get an error whenever i try to run "npm install" on visual studio code
[英]i am trying to run the command npm install in visual code but it is showing me this error
[
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\sahib\Downloads\generative-art-node-main (1)> npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\sahib/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\sahib\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\sahib\AppData\Local\npm-cache\_logs\2021-10-14T13_21_21_398Z-debug.log
PS C:\Users\sahib\Downloads\generative-art-node-main (1)> ][1]
您是否从包含package.json
的文件夹运行npm install
。 通过运行ls
命令来验证这一点,并查看 package.json 是否在输出中列出
你打字
PS C:\Users\sahib\Downloads\generative-art-node-main (1)> npm install
但错误正在寻找两个目录上的东西:
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\sahib\package.json'
这将表明您尝试安装的 package.json 中有一些奇怪/错误的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.