Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am new to PRISMA /. i am not able to install via NPM .. can some body help ? #2041

Closed
panindra2017 opened this issue Apr 1, 2020 · 7 comments
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug.
Milestone

Comments

@panindra2017
Copy link

panindra2017 commented Apr 1, 2020

Hi , I am getting error in installing PRISMA ,can you help whats the issue ,

PS F:\prisma\demoOne> npm install @prisma/cli
@prisma/cli@2.0.0-beta.1 preinstall F:\prisma\demoOne\node_modules\@prisma\cli
node preinstall/index.js
internal/fs/utils.js:230
throw err;
^
Error: ENOENT: no such file or directory, lstat 'C:\Users\vinsmart\AppData\Roaming\npm\node_modules'
at Object.realpathSync (fs.js:1588:7)
at Object.794 (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js:1:53017)
at __webpack_require__ (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js:1:154)
at Object.500 (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js:1:30472)
at __webpack_require__ (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js:1:154)
at startup (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js:1:291)
at module.exports.8 (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js:1:346)
at Object.<anonymous> (F:\prisma\demoOne\node_modules\@prisma\cli\preinstall\index.js:1:356)
at Module._compile (internal/modules/cjs/loader.js:1147:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10) {
errno: -4058,
syscall: 'lstat',
code: 'ENOENT',
path: 'C:\\Users\\vinsmart\\AppData\\Roaming\\npm\\node_modules'
}
npm WARN demoOne@1.0.0 No description
npm WARN demoOne@1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @prisma/cli@2.0.0-beta.1 preinstall: node preinstall/index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @prisma/cli@2.0.0-beta.1 preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\vinsmart\AppData\Roaming\npm-cache\_logs\2020-04-01T16_24_20_406Z-debug.log
PS F:\prisma\demoOne> npm install @prisma/cli
@prisma/cli@2.0.0-beta.1 preinstall F:\prisma\demoOne\node_modules\@prisma\cli
node preinstall/index.js
@janpio janpio added this to the Beta 2 milestone Apr 1, 2020
@janpio janpio added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. labels Apr 1, 2020
@janpio
Copy link
Contributor

janpio commented Apr 1, 2020

Hey @panindra2017, that is a nasty bug - sorry!

You might be able to work around it by creating the folder C:\Users\vinsmart\AppData\Roaming\npm\node_modules manually if it does not exist yet. Does that help?

@timsuchanek
Copy link
Contributor

We just added a fix to make this code fail silently, so you should not hit this situation anymore.

Please try out npm install @prisma/cli@alpha and let us know if this works for you 🙏

@pantharshit00
Copy link
Contributor

@panindra2017 Can you please try this again?

Please npm install @prisma/cli@alpha and let us know if that still errors out for you.

@pantharshit00 pantharshit00 added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. and removed bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. labels Apr 6, 2020
@divyenduz divyenduz modified the milestones: Beta 2, Beta 3 Apr 9, 2020
@janpio janpio assigned pantharshit00 and unassigned timsuchanek Apr 11, 2020
@pantharshit00 pantharshit00 removed their assignment Apr 14, 2020
@pantharshit00
Copy link
Contributor

Closing due to inactivity. Please comment here or open a new issue if you are still seeing this.

@Wyndham007
Copy link

I'm getting this error on my AWS EC2 instance. This npm install @prisma/cli@alpha is not working. Any idea?

@janpio
Copy link
Contributor

janpio commented Oct 1, 2020

Please open a new issue and include all the information the issue template asks for @Wyndham007 - then we can debug and help you.

@zayabattogtokh
Copy link

It's solved after the following steps:

  • npm i @prisma/client@2.7.1
  • npm install -g yarn

    yarn add --dev prisma@latest
    yarn add @prisma/client@latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug.
Projects
None yet
Development

No branches or pull requests

7 participants