Getting strange error using UUID npm module. What am I doing wrong?
问题 Getting "Error: Package exports for 'D:\test\node_modules\uuid' do not define a '.' subpath" all the time when I require it. OS - Windows 10 Pro Node version - v13.1.0 NPM version - 6.14.4 I created a project from scratch and run npm init -y to create initial package.json Then I installed uuid by running npm install uuid and created index.js with nothing but only const { v4: uuidv4 } = require('uuid'); uuidv4(); from their example But whenever I try to run this code node ./index.js I always