以防其他人遇到这种情况。我在这里搜了一遍却没找到副本。如果有道歉的话。
OS X塞拉利昂10.12.6
升级Node后运行Gulp时获取此错误:TypeError: require.extensions.hasOwnProperty is not a function
我以前的节点版本是6.x (在v8之前)
发布于 2018-03-09 17:43:06
运行了这个:
rm -r node_modules/require-dir ( not sure if this is really needed )
然后:
npm uninstall && npm-check-updates -g && npm install npm-check-updates -g
然后得到以下错误:
Error: Cannot find module 'require-dir'
然后运行这个:
npm install require-dir
问题解决
https://stackoverflow.com/questions/49199297
复制相似问题