sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

TypeError: Cannot read property 'entries' of undefined

Open ag0059985 opened this issue 10 years ago • 7 comments

when trying to run this command yo @microsoft/sharepoint getting this below error... events.js:141 throw er; // Unhandled 'error' event ^

TypeError: Cannot read property 'entries' of undefined at module.exports.yeoman.Base.extend.prompting._updateConfig (/usr/local/lib/node_modules/@microsoft/generator-sharepoint/generators/webpart/main.js:90:11) at module.exports.yeoman.Base.extend.prompting.writing (/usr/local/lib/node_modules/@microsoft/generator-sharepoint/generators/webpart/main.js:70:10) at Object. (/usr/local/lib/node_modules/@microsoft/generator-sharepoint/node_modules/yeoman-generator/lib/base.js:431:23) at /usr/local/lib/node_modules/@microsoft/generator-sharepoint/node_modules/run-async/index.js:26:25 at /usr/local/lib/node_modules/@microsoft/generator-sharepoint/node_modules/run-async/index.js:25:19 at /usr/local/lib/node_modules/@microsoft/generator-sharepoint/node_modules/yeoman-generator/lib/base.js:432:9 at processImmediate as _immediateCallback

ag0059985 avatar Aug 19 '16 12:08 ag0059985

@ag0059985 windows, linux or mac?

mauricionr avatar Aug 19 '16 12:08 mauricionr

@mauricionr mac

ag0059985 avatar Aug 19 '16 13:08 ag0059985

Which node and npm version do you use? node -v && npm -v

StfBauer avatar Aug 19 '16 13:08 StfBauer

@StfBauer npm -v => 3.10.6 and node -v => v4.2.4

ag0059985 avatar Aug 19 '16 13:08 ag0059985

Have you applied one of those fixes to NPM? https://docs.npmjs.com/getting-started/fixing-npm-permissions It seems like you don't have permission to read without sudo command in that path.

Personal recommendation is Method 2.

StfBauer avatar Aug 19 '16 14:08 StfBauer

@StfBauer this issue has been fixed now.. just uninstalled npm, gulp and yo..and installed it again..worked fine

thank you so much for all the help 👍

ag0059985 avatar Aug 19 '16 15:08 ag0059985

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 30 '20 12:01 msft-github-bot