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

Getting error when doing npm install lazysizes --save #936

Open
SupriyaGo opened this issue Dec 21, 2021 · 0 comments
Open

Getting error when doing npm install lazysizes --save #936

SupriyaGo opened this issue Dec 21, 2021 · 0 comments
Labels

Comments

@SupriyaGo
Copy link

SupriyaGo commented Dec 21, 2021

D:\Projects\NUXT_FULLPAGE-LAZYLOAD\lazyload-fullpage-app> npm install lazysizes --save

> weak@1.0.1 install D:\Projects\NUXT_FULLPAGE-LAZYLOAD\lazyload-fullpage-app\node_modules\weak
> node-gyp rebuild


D:\Projects\NUXT_FULLPAGE-LAZYLOAD\lazyload-fullpage-app\node_modules\weak>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  weakref.cc
  win_delay_load_hook.cc
d:\projects\nuxt_fullpage-lazyload\lazyload-fullpage-app\node_modules\weak\src\weakref.cc(147): error C2660: 'v8::Func
tion::Call': function does not take 3 arguments [D:\Projects\NUXT_FULLPAGE-LAZYLOAD\lazyload-fullpage-app\node_modules
\weak\build\weakref.vcxproj]
  c:\users\supriya gorai\appdata\local\node-gyp\cache\14.17.4\include\node\v8.h(4468): note: see declaration of 'v8::F 
  unction::Call' (compiling source file ..\src\weakref.cc)
d:\projects\nuxt_fullpage-lazyload\lazyload-fullpage-app\node_modules\weak\src\weakref.cc(168): error C2660: 'v8::Obje 
ctTemplate::NewInstance': function does not take 0 arguments [D:\Projects\NUXT_FULLPAGE-LAZYLOAD\lazyload-fullpage-app 
\node_modules\weak\build\weakref.vcxproj]
  c:\users\supriya gorai\appdata\local\node-gyp\cache\14.17.4\include\node\v8.h(6762): note: see declaration of 'v8::O 
  bjectTemplate::NewInstance' (compiling source file ..\src\weakref.cc)
d:\projects\nuxt_fullpage-lazyload\lazyload-fullpage-app\node_modules\weak\src\weakref.cc(223): error C2039: 'IsNearDe 
ath': is not a member of 'Nan::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>' [D:\Projects\NUXT_FULLPAGE-L 
AZYLOAD\lazyload-fullpage-app\node_modules\weak\build\weakref.vcxproj]
          with
          [
              T=v8::Object
          ]
  d:\projects\nuxt_fullpage-lazyload\lazyload-fullpage-app\node_modules\nan\nan.h(1990): note: see declaration of 'Nan 
  ::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>'
          with
          [
              T=v8::Object
          ]
gyp ERR! build error 
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:400:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Projects\NUXT_FULLPAGE-LAZYLOAD\lazyload-fullpage-app\node_modules\weak
gyp ERR! node -v v14.17.4
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\rollup-watch\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: weak@1.0.1 (node_modules\weak):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: weak@1.0.1 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ lazysizes@5.3.2
updated 1 package and audited 1367 packages in 9.544s

99 packages are looking for funding
  run `npm fund` for details

found 9 vulnerabilities (1 low, 3 moderate, 4 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

Getting this . How to fix

@SupriyaGo SupriyaGo added the bug label Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant