簡體   English   中英

我正在嘗試在可視代碼中運行命令 npm install 但它向我顯示了這個錯誤

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM