facebookarchive / draft-js

A React framework for building text editors.
https://draftjs.org/
MIT License
22.57k stars 2.64k forks source link

npm install error #1555

Closed Linbubin closed 6 years ago

Linbubin commented 6 years ago
$ npm install --save draft-js
npm WARN deprecated coffee-script@1.4.0: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated express@2.5.11: express 2.x series is deprecated
npm WARN deprecated connect@1.9.2: connect 1.x series is deprecated
npm WARN checkPermissions Missing write access to f:\prisons-platform\node_modules\mockjs
npm WARN karma-phantomjs-launcher@0.2.3 requires a peer of phantomjs@>=1.9 but none is installed. You must install peer dependencies yourself.

npm ERR! path f:\prisons-platform\node_modules\mockjs
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'f:\prisons-platform\node_modules\mockjs'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\hzjs\AppData\Roaming\npm-cache\_logs\2017-12-11T01_25_51_408Z-debug.log
/e/work/npm: line 34:  2888 Signal 112              (core dumped) "$NODE_EXE" "$NPM_CLI_JS" "$@"

How to success?

anyway thanks.

package.json is

{
  "private": true,
  "entry": {},
  "theme": "./theme.js",
  "dependencies": {
    "antd": "2.2.1",
    "async": "0.9.0",
    "axios": "0.13.1",
    "babel-runtime": "6.6.1",
    "bce-sdk-js": "0.1.8",
    "body-parser": "1.5.0",
    "classnames": "2.2.3",
    "co": "^4.6.0",
    "composable-middleware": "0.3.0",
    "compression": "1.0.1",
    "connect-mongo": "0.8.1",
    "cookie-parser": "1.0.1",
    "echarts-for-react": "1.1.5",
    "ejs": "0.8.4",
    "errorhandler": "1.0.0",
    "es3ify-loader": "0.2.0",
    "es6-promise": "4.0.5",
    "excel-export": "0.5.1",
    "express": "4.9.0",
    "express-jwt": "3.0.0",
    "express-session": "1.0.2",
    "fetch-detector": "1.0.0",
    "fetch-ie8": "1.4.0",
    "history": "2.0.1",
    "immutable": "3.8.1",
    "isomorphic-fetch": "2.2.1",
    "js-cookie": "2.1.1",
    "jsonwebtoken": "5.0.0",
    "key-mirror": "1.0.1",
    "lodash": "4.13.1",
    "log4js": "0.6.36",
    "md5": "2.1.0",
    "method-override": "~1.0.0",
    "moment": "2.15.2",
    "mongoose": "~4.0.3",
    "mongoose-text-search": "0.0.2",
    "morgan": "~1.0.0",
    "multer": "^1.3.0",
    "object-assign": "4.0.1",
    "passport": "~0.2.0",
    "passport-local": "~0.1.6",
    "q": "1.4.1",
    "react": "0.14.x",
    "react-dom": "0.14.x",
    "react-redux": "4.4.0",
    "react-router": "2.3.x",
    "react-router-redux": "4.0.5",
    "redbox-react": "1.3.2",
    "redux": "3.3.1",
    "redux-immutable": "3.0.8",
    "redux-logger": "2.6.1",
    "redux-thunk": "2.0.1",
    "redux-undo": "0.6.1",
    "reqwest": "2.0.5",
    "serve-favicon": "2.0.1",
    "socket.io": "1.0.6",
    "socket.io-client": "1.0.6",
    "socketio-jwt": "3.0.0"
  },
  "devDependencies": {
    "atool-build": "^0.9.0",
    "atool-test-mocha": "^0.1.4",
    "babel-core": "^6.4.0",
    "babel-eslint": "^6.0.0",
    "babel-loader": "~6.2.1",
    "babel-plugin-import": "^1.0.1",
    "babel-plugin-transform-runtime": "^6.8.0",
    "babel-polyfill": "^6.3.14",
    "babel-preset-es2015": "^6.3.13",
    "babel-preset-react": "^6.3.13",
    "babel-register": "^6.3.13",
    "bundle-loader": "^0.5.4",
    "chai": "^3.4.1",
    "chai-as-promised": "^7.1.1",
    "connect-livereload": "~0.4.0",
    "copy-webpack-plugin": "^3.0.1",
    "cross-env": "^5.0.5",
    "dora": "0.4.x",
    "dora-plugin-browser-history": "0.2.x",
    "dora-plugin-hmr": "0.7.x",
    "dora-plugin-livereload": "0.5.x",
    "dora-plugin-proxy": "0.8.x",
    "dora-plugin-webpack": "0.8.1",
    "enzyme": "^2.8.2",
    "eslint": "^2.7.0",
    "eslint-config-airbnb": "6.x",
    "eslint-plugin-react": "4.x",
    "expect": "^1.20.1",
    "glob": "^7.0.3",
    "html-loader": "^0.4.4",
    "html-webpack-plugin": "^2.24.1",
    "immuter": "^1.0.5",
    "jsdom": "^9.4.1",
    "karma": "^0.13.19",
    "karma-chai": "^0.1.0",
    "karma-mocha": "^0.2.1",
    "karma-phantomjs-launcher": "^0.2.3",
    "karma-sourcemap-loader": "^0.3.6",
    "karma-spec-reporter": "0.0.23",
    "karma-webpack": "^1.7.0",
    "markdown-loader": "^0.1.7",
    "mocha": "^3.5.0",
    "react-addons-test-utils": "^0.14.6",
    "should": "^11.2.1",
    "sinon": "^1.17.2",
    "spy-react-component-lifecycle": "^0.2.0",
    "supertest": "~0.11.0",
    "puer": "^1.1.4",
    "puer-mock": "^1.2.3"
  }
}
Linbubin commented 6 years ago

I rm -rf node_modules and add "draft-js": "^0.10.4", to package.json and npm install. I don't know why, but now it work