node module install, Refusing to install

I face this problem with node.js 6.9.1. At first, I think it is a version problem, so I try to change my node version. However, it still not works at all.


Try to rename your project name, in node.js some version, you could not name as same name to dependency module's name.

Like I test nodejibia, and I named the test project name as "nodejibia", and in package.json, I setup same value, then npm install fail.

Then try to rename test project from "nodejibia" to "nodejibiatest", and change package.json content.

  "name": "nodejiebatest",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  "author": "",
  "license": "ISC",
  "dependencies": {
    "nodejieba": "^2.2.4"

Then it works.


Web developer, focus on website fullstack, special JavaScript, and love sharing developing experience and communicate with developers.