[
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]发布于 2021-10-14 13:32:39
您是否从包含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中有一些奇怪的/错误的东西。
https://stackoverflow.com/questions/69571523
复制相似问题