pnp / sp-dev-solutions

Repository for SharePoint development reusable solutions
Other
496 stars 440 forks source link

Error: unable to get local issuer certificate #308

Open donshults opened 5 years ago

donshults commented 5 years ago

Category

Expected or Desired Behavior

running NPM Install against an unmodified version of the ColumnFormatter Sample should complete normally.

Observed Behavior

C:\Users\donald.shults\Source\sp-dev-solutions\solutions\ColumnFormatter\node_modules\deasync>if not defined npm_config_node_gyp (node "C:\Users\x_dshults.port\AppData\Roaming\nvm\v10.16.3\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\x_dshults.port\AppData\Roaming\nvm\v10.16.3\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: unable to get local issuer certificate gyp ERR! stack at TLSSocket.onConnectSecure (_tls_wrap.js:1058:34) gyp ERR! stack at TLSSocket.emit (events.js:198:13) gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:636:8) gyp ERR! System Windows_NT 10.0.17763 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\x_dshults.port\AppData\Roaming\nvm\v10.16.3\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\donald.shults\Source\sp-dev-solutions\solutions\ColumnFormatter\node_modules\deasync gyp ERR! node -v v10.16.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed

Steps to Reproduce

git clone https://github.com/SharePoint/sp-dev-solutions.git cd ../sp-dev-solutions/solutions/ColumnFormatter npm install

Submission Guidelines

Thanks for your contribution! Sharing is caring.

yousifalraheem commented 4 years ago

Same issue here, I'm trying to install behind a corporate proxy. I tried a lot of configurations. Nothing is working