How to fix "ReferenceError: primordials is not defined" in Node.js[转]

569 阅读1分钟

stackoverflow.com/questions/5…

  1. npm install

  2. npm install gulp

  3. create file npm-shrinkwrap.json with(如果原本存在该文件,则把文件的内容替换为下面的信息)

    {
      "dependencies": {
        "graceful-fs": {
            "version": "4.2.2"
         }
      }
    }
    
  4. npm install (again) (Not npm install gulp again! Very important - otherwise the error will be come back)

  5. gulp (now working)