content-and-experience-toolkit icon indicating copy to clipboard operation
content-and-experience-toolkit copied to clipboard

not able to perform npm install on sites folder, getting the below issue

Open desuvinaykumar opened this issue 4 years ago • 4 comments
trafficstars

npm ERR! code 128 npm ERR! command failed npm ERR! command git ls-remote ssh://[email protected]/bin/cec.git npm ERR! ERROR: Repository not found. npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/vinaydesu/.npm/_logs/2021-07-06T10_34_31_518Z-debug.log npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/bincec - Not found npm ERR! 404 npm ERR! 404 'bincec@*' is not in the npm registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/vinaydesu/.npm/_logs/2021-07-06T10_34_35_497Z-debug.log npm ERR! code 1 npm ERR! path /Users/vinaydesu/workspace/mysitesrepos/content-and-experience-toolkit/sites npm ERR! command failed npm ERR! command sh -c gulp --gulpfile bin/gulpfile.js copy-libs && npm install bin/cec --no-save || npm install bin\cec --no-save

npm ERR! A complete log of this run can be found in: npm ERR! /Users/vinaydesu/.npm/_logs/2021-07-06T10_34_35_554Z-debug.log

desuvinaykumar avatar Jul 06 '21 10:07 desuvinaykumar

What's your node/npm version? Have you added ssh key to github account?

hzeng99 avatar Jul 06 '21 23:07 hzeng99

What's your node/npm version? Have you added ssh key to github account?

image yes, i have added the ssh key to github.

desuvinaykumar avatar Jul 07 '21 04:07 desuvinaykumar

can you try to use node v14.17.3?

hzeng99 avatar Jul 07 '21 16:07 hzeng99

Hi, I found the resolution. There is a mistake in package.json

I have changed following lines: "postinstall": "gulp --gulpfile bin/gulpfile.js copy-libs && npm install ./bin/cec --no-save || npm install .\bin\cec --no-save", "install-cec": "npm install -g ./bin/cec"

It will work

invingagan1 avatar Jul 08 '21 05:07 invingagan1