The package rxjs does not satisfy its siblings' peerDependencies requirements - node.js

Upon doing npm install, I encountered the error:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package rxjs does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer #angular/core#2.0.0-rc.4 wants rxjs#5.0.0-beta.6
npm ERR! peerinvalid Peer angular2#2.0.0-beta.15 wants rxjs#5.0.0-beta.2
npm ERR! peerinvalid Peer #angular/router#3.0.0-beta.2 wants rxjs#5.0.0-beta.6
npm ERR! peerinvalid Peer #angular/http#2.0.0-rc.4 wants rxjs#5.0.0-beta.6
npm ERR! Please include the following file with any support request:
npm ERR! c:\GIT\mas\Rapid\factory\npm-debug.log
Here's the package.json:
{
"name": "sdk",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"postinstall": "typings install && bower install --production && jspm install && node src/tools/updateDependencies.js && npm run bundle-dep",
"_jspm": "jspm install",
"_postjspm": "node src/tools/updateDependencies.js && npm run bundle-dep",
"bundle-dep": "jspm bundle \"src - [src/**/*] - [components/**/*]\" www/bundle.js",
"start": "node dev-server.js"
},
"author": "",
"license": "ISC",
"dependencies": {},
"devDependencies": {
"#angular/common": "2.0.0-rc.4",
"#angular/compiler": "2.0.0-rc.4",
"#angular/core": "2.0.0-rc.4",
"#angular/forms": "0.2.0",
"#angular/http": "2.0.0-rc.4",
"#angular/platform-browser": "2.0.0-rc.4",
"#angular/platform-browser-dynamic": "2.0.0-rc.4",
"#angular/router": "3.0.0-beta.2",
"bower": "^1.7.9",
"chokidar-socket-emitter": "^0.3.1",
"express": "^4.13.4",
"jspm": "^0.17.0-beta.12",
"open": "0.0.5",
"rxjs": "5.0.0-beta.2",
"spdy": "^3.2.3",
"typings": "^0.7.12"
},
"jspm": {
"name": "sdk",
"directories": {
"lib": "src"
},
"dependencies": {
"#angular/forms": "npm:#angular/forms#^0.2.0",
"#angular/http": "npm:#angular/http#^2.0.0-rc.4",
"#angular/router": "npm:#angular/router#^3.0.0-beta.2",
"core-js": "npm:core-js#^2.4.1",
"es6-shim": "github:es-shims/es6-shim#^0.35.0",
"json": "github:systemjs/plugin-json#^0.1.0",
"systemjs-hot-reloader": "github:capaj/systemjs-hot-reloader#^0.5.6"
},
"devDependencies": {
"os": "github:jspm/nodelibs-os#^0.2.0-alpha",
"plugin-typescript": "github:frankwallis/plugin-typescript#^4.0.5"
},
"peerDependencies": {
"#angular/common": "npm:#angular/common#^2.0.0-rc.4",
"#angular/compiler": "npm:#angular/compiler#^2.0.0-rc.4",
"#angular/core": "npm:#angular/core#^2.0.0-rc.4",
"#angular/platform-browser": "npm:#angular/platform-browser#^2.0.0-rc.4",
"#angular/platform-browser-dynamic": "npm:#angular/platform-browser-dynamic#^2.0.0-rc.4",
"assert": "github:jspm/nodelibs-assert#^0.2.0-alpha",
"fs": "github:jspm/nodelibs-fs#^0.2.0-alpha",
"net": "github:jspm/nodelibs-net#^0.2.0-alpha",
"path": "github:jspm/nodelibs-path#^0.2.0-alpha",
"process": "github:jspm/nodelibs-process#^0.2.0-alpha",
"reflect-metadata": "npm:reflect-metadata#0.1.2",
"rxjs": "npm:rxjs#5.0.0-beta.6",
"tty": "github:jspm/nodelibs-tty#^0.2.0-alpha",
"util": "github:jspm/nodelibs-util#^0.2.0-alpha",
"zone.js": "npm:zone.js#^0.6.6"
},
"overrides": {
"npm:#angular/common#2.0.0-rc.4": {
"meta": {
"src/*.js": {
"deps": [
"reflect-metadata",
"zone.js"
]
}
}
},
"npm:#angular/compiler#2.0.0-rc.4": {
"meta": {
"src/*.js": {
"deps": [
"reflect-metadata",
"zone.js"
]
}
}
},
"npm:#angular/core#2.0.0-rc.4": {
"meta": {
"src/*.js": {
"deps": [
"reflect-metadata",
"zone.js"
]
}
}
},
"npm:#angular/http#2.0.0-rc.4": {
"meta": {
"src/*.js": {
"deps": [
"reflect-metadata",
"zone.js"
]
}
}
},
"npm:#angular/platform-browser-dynamic#2.0.0-rc.4": {
"meta": {
"src/*.js": {
"deps": [
"reflect-metadata",
"zone.js"
]
}
}
},
"npm:#angular/platform-browser#2.0.0-rc.4": {
"meta": {
"src/*.js": {
"deps": [
"reflect-metadata",
"zone.js"
]
}
}
},
"npm:debug#2.2.0": {
"main": "browser.js",
"jspmNodeConversion": false,
"format": "cjs",
"map": {
"./browser.js": {
"node": "./node.js"
},
"fs": "#node/fs",
"net": "#node/net",
"tty": "#node/tty",
"util": "#node/util"
}
},
"npm:ms#0.7.1": {
"jspmNodeConversion": false,
"format": "cjs"
},
"npm:reflect-metadata#0.1.2": {
"map": {
"crypto": "#empty"
}
},
"npm:typescript#1.8.9": {
"browser": {},
"map": {
"buffer": "#empty",
"child_process": "#empty",
"fs": "#empty",
"path": "#empty",
"process": "#empty",
"readline": "#empty"
}
}
}
}
}
I tried upgrading "rxjs": "5.0.0-beta.2" to "rxjs": "5.0.0-beta.6" under devDependencies, but it gave me:
npm ERR! peerinvalid The package rxjs does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer angular2#2.0.0-beta.15 wants rxjs#5.0.0-beta.2
npm ERR! peerinvalid Peer #angular/core#2.0.0-rc.4 wants rxjs#5.0.0-beta.6
npm ERR! peerinvalid Peer #angular/http#2.0.0-rc.4 wants rxjs#5.0.0-beta.6
npm ERR! peerinvalid Peer #angular/router#3.0.0-beta.2 wants rxjs#5.0.0-beta.6

There are actually two versions of Angular 2 installed in this project. Old (angular2) and new (#angular).
So I uninstalled the old one by this command:
npm uninstall angular2
then retried:
npm install
then:
npm start

Related

Can install sass-loader in Vue 3 project

I am trying to add sass/scss loader AFTER creating a project with vue CLI.
I ran this script:
$ npm install -D sass-loader#^10 sass
and I am receiving following error:
npm ERR! notsup Unsupported platform for fsevents#2.3.1: wanted {"os":"darwin"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: undefined
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
It worked for me in empty project that i created to test this. But in my project does not work.
I am using Ubuntu 20.04
this is my package.json file:
{
"name": "hikegear",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"#fortawesome/fontawesome-svg-core": "^1.2.34",
"#fortawesome/free-solid-svg-icons": "^5.15.2",
"#fortawesome/vue-fontawesome": "^3.0.0-3",
"chart.js": "^2.9.4",
"core-js": "^3.6.5",
"sortablejs": "^1.13.0",
"vue": "^3.0.5",
"vue-router": "^4.0.3",
"vuedraggable": "^4.0.1",
"vuex": "^4.0.0-rc.2",
"vuex-persistedstate": "^4.0.0-beta.3"
},
"devDependencies": {
"#vue/cli-plugin-babel": "~4.5.0",
"#vue/cli-plugin-eslint": "~4.5.0",
"#vue/cli-service": "~4.5.0",
"#vue/compiler-sfc": "^3.0.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^7.0.0-0"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
}
try deleting your package-lock.json file and node_modules folder and then installing your dependencies again
rm -r node_modules package.json
npm i
Yes you can. add following dependecis in your package.json and run npm i.
"devDependencies": {
"sass-loader": "^7.2.0",
"sass": "^1.22.10",
}
for add global variables you need to make vue.config.js in root directory if not exist. then add your scss varibale file.
module.exports = {
css: {
loaderOptions: {
sass: {
additionalData: '#import "#/assets/styles/file.scss";',
implementation: require('node-sass')
},
},
},
};

Fail to install npm packages if i keep the package-lock.json file, npm ERR! errno -4048 after type npm install

I have a project from git, and when i tried to install npm packages using npm install, i get npm different errors:
**and if i delete package-lock.json,the npm install the packages successfully,but with different versions,that caused exceptions and conflicts in the project **
So,how i can run npm install without deleting the lock file to keeping the versions rules?
i tried to clear the npm cach using npm cach clear --force and remove the node_modules but not solved the problem (it's run only if i delete the lock file).
PS K:\project\Inmaa> npm -v
6.14.7
PS K:\project\Inmaa> node -v
v12.18.3
PS K:\project\Inmaa> npm install
npm WARN tarball tarball data for core-js#3.6.5 (sha512-vZVEEwZoIsI+vPEuoF9Iqf5H7/M3eeQqWlQnYa8FSKKePuYTf5MWnxb5SDAzCa60b3JBRS5g9b+Dq7b1y/RCrA==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for #firebase/auth#0.14.7 (sha512-NTQY9luV70XUA6zGYOWloDSaOT+l0/R4u3W7ptqVCfZNc4DAt7euUkTbj7SDD14902sHF54j+tk5kmpEmMd0jA==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for #babel/plugin-proposal-object-rest-spread#7.9.0 (sha512-UgqBv6bjq4fDb8uku9f+wcm1J7YxJ5nT7WO/jBr0cl0PLKb7t1O6RNR1kZbjgx2LQtsDI9hwoQVmn0yhXeQyow==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for #babel/helper-validator-identifier#7.9.0 (sha512-6G8bQKjOh+of4PV/ThDm/rRqlU7+IGoJuofpagU5GlEl29Vv0RGqqt86ZGRV8ZuSOY3o+8yXl5y782SMcG7SHw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for vuelidate#0.7.5 (sha512-GAAG8QAFVp7BFeQlNaThpTbimq3+HypBPNwdkCkHZZeVaD5zmXXfhp357dcUJXHXTZjSln0PvP6wiwLZXkFTwg==)
seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for vuex#3.1.3 (sha512-k8vZqNMSNMgKelVZAPYw5MNb2xWSmVgCKtYKAptvm9YtZiOXnRXFWu//Y9zQNORTrm3dNj1n/WaZZI26tIX6Mw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for vue2-google-maps#0.10.7 (sha512-y5aBJTAsfGvpsbfgPaeWU7o7QbOeINZKsP6SB9qrBe8U8EYBFO/bTWo3rcMq/NOtgT/XssV3Nwg/2u3no6jWbw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for vuetify-loader#1.4.3 (sha512-fS0wRil682Ebsj2as+eruBoMPKaQYDhu/fDAndnTItzSY4RK4LOEIsssVL4vD6QY8dvUgoGL84SUQ6vGr777CA==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for vuetify#2.2.18 (sha512-RXN065xh5xKmTnEH6+1YFZWp67soOJPTIqqPNliSp9eE72Q7a5fmaV1xQsEVVaVA12+5Hvroo7NW7MP/APucGw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for #firebase/logger#0.2.5 (sha512-qqw3m0tWs/qrg7axTZG/QZq24DIMdSY6dGoWuBn08ddq7+GLF5HiqkRj71XznYeUUbfRq5W9C/PSFnN4JxX+WA==) seems to be corrupted. Trying one more time.
npm WARN tar ENOENT: no such file or directory, open 'K:\project\Inmaa\node_modules\.staging\#babel\plugin-transform-for-of-344259c6\lib\index.js'
npm WARN tar ENOENT: no such file or directory, open 'K:\project\Inmaa\node_modules\.staging\#babel\plugin-transform-for-of-344259c6\lib\no-helper-implementation.js'
npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path K:\project\Inmaa\node_modules\.staging\vuetify-loader-7878cddd\LICENSE.md
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink 'K:\project\Inmaa\node_modules\.staging\vuetify-loader-7878cddd\LICENSE.md'
npm ERR! [OperationalError: EPERM: operation not permitted, unlink 'K:\project\Inmaa\node_modules\.staging\vuetify-loader-7878cddd\LICENSE.md'] {
npm ERR! cause: [Error: EPERM: operation not permitted, unlink 'K:\project\Inmaa\node_modules\.staging\vuetify-loader-7878cddd\LICENSE.md'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'K:\\project\\Inmaa\\node_modules\\.staging\\vuetify-loader-7878cddd\\LICENSE.md'
npm ERR! },
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'K:\\project\\Inmaa\\node_modules\\.staging\\vuetify-loader-7878cddd\\LICENSE.md'
PS K:\project\Inmaa> npm install
npm WARN tarball tarball data for ssri#7.1.0 (sha512-77/WrDZUWocK0mvA5NTRQyveUf+wsrIc6vyrxpS8tVvYBcX215QbafrJR3KtkpskIzoFLqqNuuYQvxaMjXJ/0g==) seems to be corrupted. Trying one more time.
npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path K:\project\Inmaa\node_modules\.staging\ssri-b04c905c\index.js
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink 'K:\project\Inmaa\node_modules\.staging\ssri-b04c905c\index.js'
npm ERR! [OperationalError: EPERM: operation not permitted, unlink 'K:\project\Inmaa\node_modules\.staging\ssri-b04c905c\index.js'] {
npm ERR! cause: [Error: EPERM: operation not permitted, unlink 'K:\project\Inmaa\node_modules\.staging\ssri-b04c905c\index.js'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'K:\\project\\Inmaa\\node_modules\\.staging\\ssri-b04c905c\\index.js'
npm ERR! },
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'K:\\project\\Inmaa\\node_modules\\.staging\\ssri-b04c905c\\index.js'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm WARN tar ENOENT: no such file or directory, open 'K:\project\Inmaa\node_modules\.staging\moment-28f13bf5\src\lib\moment\moment.js'
npm WARN tar ENOENT: no such file or directory, open 'K:\project\Inmaa\node_modules\.staging\#babel\parser-6252c24b\lib\plugins\flow.js'
npm WARN tar ENOENT: no such file or directory, open 'K:\project\Inmaa\node_modules\.staging\moment-28f13bf5\min\moment.min.js'
npm WARN tar ENOENT: no such file or directory, open 'K:\project\Inmaa\node_modules\.staging\vuetify-loader-7878cddd\lib\index.js'
npm WARN tar ENOENT: no such file or directory, open 'K:\project\Inmaa\node_modules\.staging\vuetify-loader-7878cddd\lib\loader.js'
package.json:
{
"private": true,
"scripts": {
"postinstall": "npm run prod",
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "npm run development -- --watch",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"axios": "^0.19.2",
"cross-env": "^7.0",
"deepmerge": "^4.2.2",
"fibers": "^4.0.2",
"laravel-mix": "^5.0.1",
"lodash": "^4.17.13",
"resolve-url-loader": "^2.3.1",
"sass": "^1.26.3",
"sass-loader": "^8.0.2",
"vue": "^2.6.11",
"vue-template-compiler": "^2.6.10"
},
"dependencies": {
"#mdi/font": "^5.1.45",
"#mdi/js": "^5.1.45",
"firebase": "^7.15.3",
"i": "^0.3.6",
"moment": "^2.26.0",
"promise": "^8.1.0",
"vue-check-view": "^0.3.0",
"vue-google-adsense": "^1.8.1",
"vue-i18n": "^8.15.6",
"vue-notification": "^1.3.20",
"vue-router": "^3.1.6",
"vue-script2": "^2.1.0",
"vue2-google-maps": "^0.10.7",
"vuelidate": "^0.7.5",
"vuetify": "^2.2.18",
"vuetify-loader": "^1.4.3",
"vuex": "^3.1.3"
}
}
sample of package-lock.json:
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"#babel/code-frame": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/code-frame/-/code-frame-7.8.3.tgz",
"integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==",
"dev": true,
"requires": {
"#babel/highlight": "^7.8.3"
}
},
"#babel/compat-data": {
"version": "7.9.0",
"resolved": "https://registry.npmjs.org/#babel/compat-data/-/compat-data-7.9.0.tgz",
"integrity": "sha512-zeFQrr+284Ekvd9e7KAX954LkapWiOmQtsfHirhxqfdlX6MEC32iRE+pqUGlYIBchdevaCwvzxWGSy/YBNI85g==",
"dev": true,
"requires": {
"browserslist": "^4.9.1",
"invariant": "^2.2.4",
"semver": "^5.5.0"
}
},
"#babel/core": {
"version": "7.9.0",
"resolved": "https://registry.npmjs.org/#babel/core/-/core-7.9.0.tgz",
"integrity": "sha512-kWc7L0fw1xwvI0zi8OKVBuxRVefwGOrKSQMvrQ3dW+bIIavBY3/NpXmpjMy7bQnLgwgzWQZ8TlM57YHpHNHz4w==",
"dev": true,
"requires": {
"#babel/code-frame": "^7.8.3",
"#babel/generator": "^7.9.0",
"#babel/helper-module-transforms": "^7.9.0",
"#babel/helpers": "^7.9.0",
"#babel/parser": "^7.9.0",
"#babel/template": "^7.8.6",
"#babel/traverse": "^7.9.0",
"#babel/types": "^7.9.0",
"convert-source-map": "^1.7.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.1",
"json5": "^2.1.2",
"lodash": "^4.17.13",
"resolve": "^1.3.2",
"semver": "^5.4.1",
"source-map": "^0.5.0"
},
"dependencies": {
"debug": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
"dev": true,
"requires": {
"ms": "^2.1.1"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
"dev": true
}
}
},
"#babel/generator": {
"version": "7.9.0",
"resolved": "https://registry.npmjs.org/#babel/generator/-/generator-7.9.0.tgz",
"integrity": "sha512-onl4Oy46oGCzymOXtKMQpI7VXtCbTSHK1kqBydZ6AmzuNcacEVqGk9tZtAS+48IA9IstZcDCgIg8hQKnb7suRw==",
"dev": true,
"requires": {
"#babel/types": "^7.9.0",
"jsesc": "^2.5.1",
"lodash": "^4.17.13",
"source-map": "^0.5.0"
}
},
"#babel/helper-annotate-as-pure": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz",
"integrity": "sha512-6o+mJrZBxOoEX77Ezv9zwW7WV8DdluouRKNY/IR5u/YTMuKHgugHOzYWlYvYLpLA9nPsQCAAASpCIbjI9Mv+Uw==",
"dev": true,
"requires": {
"#babel/types": "^7.8.3"
}
},
"#babel/helper-builder-binary-assignment-operator-visitor": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.8.3.tgz",
"integrity": "sha512-5eFOm2SyFPK4Rh3XMMRDjN7lBH0orh3ss0g3rTYZnBQ+r6YPj7lgDyCvPphynHvUrobJmeMignBr6Acw9mAPlw==",
"dev": true,
"requires": {
"#babel/helper-explode-assignable-expression": "^7.8.3",
"#babel/types": "^7.8.3"
}
},
"#babel/helper-call-delegate": {
"version": "7.8.7",
"resolved": "https://registry.npmjs.org/#babel/helper-call-delegate/-/helper-call-delegate-7.8.7.tgz",
"integrity": "sha512-doAA5LAKhsFCR0LAFIf+r2RSMmC+m8f/oQ+URnUET/rWeEzC0yTRmAGyWkD4sSu3xwbS7MYQ2u+xlt1V5R56KQ==",
"dev": true,
"requires": {
"#babel/helper-hoist-variables": "^7.8.3",
"#babel/traverse": "^7.8.3",
"#babel/types": "^7.8.7"
}
},
"#babel/helper-compilation-targets": {
"version": "7.8.7",
"resolved": "https://registry.npmjs.org/#babel/helper-compilation-targets/-/helper-compilation-targets-7.8.7.tgz",
"integrity": "sha512-4mWm8DCK2LugIS+p1yArqvG1Pf162upsIsjE7cNBjez+NjliQpVhj20obE520nao0o14DaTnFJv+Fw5a0JpoUw==",
"dev": true,
"requires": {
"#babel/compat-data": "^7.8.6",
"browserslist": "^4.9.1",
"invariant": "^2.2.4",
"levenary": "^1.1.1",
"semver": "^5.5.0"
}
},
"#babel/helper-create-regexp-features-plugin": {
"version": "7.8.8",
"resolved": "https://registry.npmjs.org/#babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.8.tgz",
"integrity": "sha512-LYVPdwkrQEiX9+1R29Ld/wTrmQu1SSKYnuOk3g0CkcZMA1p0gsNxJFj/3gBdaJ7Cg0Fnek5z0DsMULePP7Lrqg==",
"dev": true,
"requires": {
"#babel/helper-annotate-as-pure": "^7.8.3",
"#babel/helper-regex": "^7.8.3",
"regexpu-core": "^4.7.0"
}
},
"#babel/helper-define-map": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-define-map/-/helper-define-map-7.8.3.tgz",
"integrity": "sha512-PoeBYtxoZGtct3md6xZOCWPcKuMuk3IHhgxsRRNtnNShebf4C8YonTSblsK4tvDbm+eJAw2HAPOfCr+Q/YRG/g==",
"dev": true,
"requires": {
"#babel/helper-function-name": "^7.8.3",
"#babel/types": "^7.8.3",
"lodash": "^4.17.13"
}
},
"#babel/helper-explode-assignable-expression": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.8.3.tgz",
"integrity": "sha512-N+8eW86/Kj147bO9G2uclsg5pwfs/fqqY5rwgIL7eTBklgXjcOJ3btzS5iM6AitJcftnY7pm2lGsrJVYLGjzIw==",
"dev": true,
"requires": {
"#babel/traverse": "^7.8.3",
"#babel/types": "^7.8.3"
}
},
"#babel/helper-function-name": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-function-name/-/helper-function-name-7.8.3.tgz",
"integrity": "sha512-BCxgX1BC2hD/oBlIFUgOCQDOPV8nSINxCwM3o93xP4P9Fq6aV5sgv2cOOITDMtCfQ+3PvHp3l689XZvAM9QyOA==",
"dev": true,
"requires": {
"#babel/helper-get-function-arity": "^7.8.3",
"#babel/template": "^7.8.3",
"#babel/types": "^7.8.3"
}
},
"#babel/helper-get-function-arity": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz",
"integrity": "sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA==",
"dev": true,
"requires": {
"#babel/types": "^7.8.3"
}
},
"#babel/helper-hoist-variables": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-hoist-variables/-/helper-hoist-variables-7.8.3.tgz",
"integrity": "sha512-ky1JLOjcDUtSc+xkt0xhYff7Z6ILTAHKmZLHPxAhOP0Nd77O+3nCsd6uSVYur6nJnCI029CrNbYlc0LoPfAPQg==",
"dev": true,
"requires": {
"#babel/types": "^7.8.3"
}
},
"#babel/helper-member-expression-to-functions": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz",
"integrity": "sha512-fO4Egq88utkQFjbPrSHGmGLFqmrshs11d46WI+WZDESt7Wu7wN2G2Iu+NMMZJFDOVRHAMIkB5SNh30NtwCA7RA==",
"dev": true,
"requires": {
"#babel/types": "^7.8.3"
}
},
"#babel/helper-module-imports": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz",
"integrity": "sha512-R0Bx3jippsbAEtzkpZ/6FIiuzOURPcMjHp+Z6xPe6DtApDJx+w7UYyOLanZqO8+wKR9G10s/FmHXvxaMd9s6Kg==",
"dev": true,
"requires": {
"#babel/types": "^7.8.3"
}
},
"#babel/helper-module-transforms": {
"version": "7.9.0",
"resolved": "https://registry.npmjs.org/#babel/helper-module-transforms/-/helper-module-transforms-7.9.0.tgz",
"integrity": "sha512-0FvKyu0gpPfIQ8EkxlrAydOWROdHpBmiCiRwLkUiBGhCUPRRbVD2/tm3sFr/c/GWFrQ/ffutGUAnx7V0FzT2wA==",
"dev": true,
"requires": {
"#babel/helper-module-imports": "^7.8.3",
"#babel/helper-replace-supers": "^7.8.6",
"#babel/helper-simple-access": "^7.8.3",
"#babel/helper-split-export-declaration": "^7.8.3",
"#babel/template": "^7.8.6",
"#babel/types": "^7.9.0",
"lodash": "^4.17.13"
}
},
"#babel/helper-optimise-call-expression": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz",
"integrity": "sha512-Kag20n86cbO2AvHca6EJsvqAd82gc6VMGule4HwebwMlwkpXuVqrNRj6CkCV2sKxgi9MyAUnZVnZ6lJ1/vKhHQ==",
"dev": true,
"requires": {
"#babel/types": "^7.8.3"
}
},
"#babel/helper-plugin-utils": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz",
"integrity": "sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ==",
"dev": true
},
"#babel/helper-regex": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-regex/-/helper-regex-7.8.3.tgz",
"integrity": "sha512-BWt0QtYv/cg/NecOAZMdcn/waj/5P26DR4mVLXfFtDokSR6fyuG0Pj+e2FqtSME+MqED1khnSMulkmGl8qWiUQ==",
"dev": true,
"requires": {
"lodash": "^4.17.13"
}
},
"#babel/helper-remap-async-to-generator": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.8.3.tgz",
"integrity": "sha512-kgwDmw4fCg7AVgS4DukQR/roGp+jP+XluJE5hsRZwxCYGg+Rv9wSGErDWhlI90FODdYfd4xG4AQRiMDjjN0GzA==",
"dev": true,
"requires": {
"#babel/helper-annotate-as-pure": "^7.8.3",
"#babel/helper-wrap-function": "^7.8.3",
"#babel/template": "^7.8.3",
"#babel/traverse": "^7.8.3",
"#babel/types": "^7.8.3"
}
},
"#babel/helper-replace-supers": {
"version": "7.8.6",
"resolved": "https://registry.npmjs.org/#babel/helper-replace-supers/-/helper-replace-supers-7.8.6.tgz",
"integrity": "sha512-PeMArdA4Sv/Wf4zXwBKPqVj7n9UF/xg6slNRtZW84FM7JpE1CbG8B612FyM4cxrf4fMAMGO0kR7voy1ForHHFA==",
"dev": true,
"requires": {
"#babel/helper-member-expression-to-functions": "^7.8.3",
"#babel/helper-optimise-call-expression": "^7.8.3",
"#babel/traverse": "^7.8.6",
"#babel/types": "^7.8.6"
}
},
"#babel/helper-simple-access": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz",
"integrity": "sha512-VNGUDjx5cCWg4vvCTR8qQ7YJYZ+HBjxOgXEl7ounz+4Sn7+LMD3CFrCTEU6/qXKbA2nKg21CwhhBzO0RpRbdCw==",
"dev": true,
"requires": {
"#babel/template": "^7.8.3",
"#babel/types": "^7.8.3"
}
},
"#babel/helper-split-export-declaration": {
"version": "7.8.3",
"resolved": "https://registry.npmjs.org/#babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz",
"integrity": "sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA==",
"dev": true,
"requires": {
"#babel/types": "^7.8.3"
}
}
Please try remove modules and install again.
rm -rf node_modules
npm cache clean --force
npm install

Why I have an error with Ganache on npm start in WSL?

I'm trying to run Ganache in WSL (Ubuntu). When I clone git repository, npm install and then run npm start, I get this error which is not specified.
> ganache#2.0.0-beta.1 start /mnt/c/Users/Name/Documents/ethereum_projects/Ganache/ganache
> electron-forge start
✔ Checking your system
✔ Locating Application
✔ Preparing native dependencies: 15 / 15
✔ Launching Application
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ganache#2.0.0-beta.1 start: `electron-forge start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ganache#2.0.0-beta.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/name/.npm/_logs/2018-12-25T22_53_48_231Z-debug.log
In the log file is nothing more specific. Here is it:
10 silly lifecycle ganache#2.0.0-beta.1~start: Args: [ '-c', 'electron-forge start' ]
11 silly lifecycle ganache#2.0.0-beta.1~start: Returned: code: 1 signal: null
12 info lifecycle ganache#2.0.0-beta.1~start: Failed to exec start script
13 verbose stack Error: ganache#2.0.0-beta.1 start: `electron-forge start`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:962:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid ganache#2.0.0-beta.1
15 verbose cwd /mnt/c/Users/Name/Documents/ethereum_projects/Ganache/ganache
16 verbose Linux 4.4.0-17763-Microsoft
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
18 verbose node v10.14.2
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error ganache#2.0.0-beta.1 start: `electron-forge start`
22 error Exit status 1
23 error Failed at the ganache#2.0.0-beta.1 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
and here is my package.json:
{
"name": "ganache",
"productName": "Ganache",
"version": "2.0.0-beta.1",
"description": "Personal Blockchain for Ethereum",
"main": "./src/init.js",
"private": true,
"scripts": {
"start": "electron-forge start",
"lint": "echo \"No linting configured\"",
"sign-mac": "codesign --deep --force --verbose --sign 'Developer ID Application: Timothy Coulter (58RKXWC272)' ./dist/*.dmg",
"makeappxassets": "svg2uwptiles -i ./Logo.svg -c ./blank.svg -o ./resources/appx/",
"build-linux": "cd ./node_modules/rabin-bindings && node-gyp rebuild && cd ../../ && electron-builder --linux",
"build-mac": "electron-builder --mac",
"build-windows": "electron-builder --win",
"test": "npm run test-mocha",
"test-mocha": "mocha --compilers js:babel-register --check-leaks --globals _scratch,sanitizedData 'test/mocha/**/*.test.js'"
},
"browserslist": "chrome 50",
"build": {
"appId": "org.trufflesuite.ganache",
"files": [
"src/**/*",
"node_modules/**/*",
"resources/fonts/*",
"resources/icons/**/*",
"package.json"
],
"directories": {
"buildResources": "resources",
"output": "dist"
},
"win": {
"icon": "resources/icons/win/icon.ico",
"certificateFile": "./certs/cert.pfx",
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
},
{
"target": "appx",
"arch": [
"x64"
]
}
]
},
"appx": {
"identityName": "Ganache",
"publisher": "CN=Consensys Inc, O=Consensys Inc, L=New York, S=New York, C=US",
"publisherDisplayName": "Consensys Inc",
"backgroundColor": "#34262A"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": "true",
"deleteAppDataOnUninstall": "true",
"artifactName": "Ganache-${version}-setup.${ext}"
},
"mac": {
"icon": "resources/icons/icon.icns",
"identity": "Timothy Coulter (58RKXWC272)"
},
"dmg": {
"background": "resources/dmg/background.tiff",
"contents": [
{
"x": 219,
"y": 358,
"type": "dir",
"name": "Ganache.app"
},
{
"x": 439,
"y": 358,
"type": "link",
"name": "Applications",
"path": "/Applications"
}
],
"icon": "resources/icons/icon.icns",
"format": "ULFO"
},
"linux": {
"target": [
{
"target": "AppImage",
"arch": [
"x64"
]
}
],
"icon": "resources/icons/png/",
"category": "Development",
"executableName": "Ganache",
"artifactName": "Ganache-${version}.${ext}"
}
},
"config": {
"forge": {
"electronPackagerConfig": {
"icon": "resources/icons/win/icon.ico",
"prune": true,
"ignore": [
".*node_modules/fsevents/build.*",
"forge_hooks",
".vscode"
],
"afterPrune": [
"./forge_hooks/afterPrune.js"
]
}
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/trufflesuite/ganache.git"
},
"author": {
"name": "Truffle",
"email": "inquiry#trufflesuite.com",
"url": "https://github.com/trufflesuite"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/trufflesuite/ganache/issues"
},
"keywords": [
"ganache",
"ethereum",
"blockchain",
"truffle"
],
"homepage": "https://github.com/trufflesuite/ganache#readme",
"devDependencies": {
"asar": "^0.13.0",
"babel-core": "^6.21.0",
"babel-eslint": "^7.1.1",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-inline-react-svg": "^0.5.2",
"babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-plugin-transform-class-properties": "^6.19.0",
"babel-plugin-transform-es2015-classes": "^6.18.0",
"babel-polyfill": "^6.20.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"babel-preset-react-hmre": "^1.1.1",
"babel-preset-react-optimize": "^1.0.1",
"babel-preset-stage-0": "^6.16.0",
"chai": "^3.5.0",
"concurrently": "^3.1.0",
"cross-env": "^3.1.4",
"electron-builder": "20.31.2",
"electron-compilers": "^5.9.0",
"electron-debug": "^1.1.0",
"electron-devtools-installer": "^2.0.1",
"electron-forge": "^5.1.1",
"electron-icon-maker": "0.0.3",
"electron-log": "^2.2.9",
"electron-prebuilt-compile": "1.8.4",
"jsdom": "^9.9.1",
"minimist": "^1.2.0",
"mocha": "^3.5.3",
"node-sass": "^4.5.3",
"prop-types": "^15.5.10",
"rcedit": "^0.9.0",
"redux-logger": "^2.7.4",
"source-map-support": "^0.4.8",
"svg2uwptiles": "0.0.4",
"temp": "^0.8.3",
"webpack": "^3.11.0"
},
"dependencies": {
"#exponent/electron-cookies": "^2.0.0",
"#seesemichaelj/react-json-view": "^1.20.2",
"async": "^2.5.0",
"benjamincburns-forked-electron-updater": "2.21.6",
"builder-util-runtime": "^4.2.0",
"electron-compile": "^6.4.2",
"electron-settings": "^3.1.2",
"electron-squirrel-startup": "^1.0.0",
"ethagen": "0.0.2",
"ethereumjs-units": "^0.2.0",
"filesize": "^3.6.1",
"find-process": "^1.1.0",
"fs-extra": "^7.0.0",
"ganache-core": "2.3.2",
"keccak": "^1.4.0",
"lodash.clonedeep": "^4.5.0",
"lodash.isequal": "^4.5.0",
"lodash.merge": "^4.6.1",
"lodash.omit": "^4.5.0",
"lodash.padstart": "^4.6.1",
"moment": "^2.17.1",
"moment-timezone": "^0.5.11",
"moniker": "^0.1.2",
"mousetrap": "^1.6.1",
"node-localstorage": "^1.3.1",
"pidusage": "^1.1.5",
"pluralize": "^5.0.0",
"rabin-bindings": "^1.7.4",
"react": "^16.3.2",
"react-custom-scrollbars": "^4.2.1",
"react-dom": "^16.3.2",
"react-hot-loader": "^3.1.1",
"react-marked-markdown": "^1.4.6",
"react-md-spinner": "^0.3.0",
"react-moment": "^0.2.2",
"react-redux": "^5.0.2",
"react-render-html": "^0.6.0",
"react-router": "^3.0.1",
"react-router-redux": "^4.0.7",
"redux": "^3.6.0",
"redux-thunk": "^2.2.0",
"reselect": "^2.5.4",
"rlp": "^2.1.0",
"scrypt": "^6.0.3",
"truffle-config": "^1.1.0-next.1",
"truffle-decoder": "^1.0.1-beta.0",
"universal-analytics": "^0.4.13",
"uuid": "^3.1.0",
"web3": "1.0.0-beta.35"
},
"optionalDependencies": {
"7zip-bin-win": "^2.2.0",
"dmg-builder": "^5.3.0"
},
"devEngines": {
"node": ">=6.x",
"npm": ">=3.x"
}
}
fdfsfasdfafdfsfasdfafdfsfasdfafdfsfasdfafdfsfasdfafdfsfasdfafdfsfasdfafdfsfasdfafdfsfasdfafdfsfasdfafdfsfasdfafdfsfasdfafdfsfasdfafdfsfasdfa
fdfsfasdfa
I cloned Ganache and followed all the instructions on the Readme.md file, everything went fine for me. I am using:
Node : v9.11.1
npm : 6.4.1
I will suggest you delete your node_modules then you should carefully go through the instructions and also ensure you're following their basic requirements:
npm v5.3.0
node v8.3.0
After which you can then go ahead and do these:
npm install
npm start
NOTE: Ensure that all your dependencies are successfully installed when you run npm install

npm install <package> working and npm install not working

If I download the source code and run:
npm install
It crashes during installation ( I think it runs out of memory), however if I directly:
npm install bigchaindb-driver
(version 0.3.0)
Then is fine...
Log error:
npm http request GET https://registry.npmjs.org/is-fullwidth-code-point
npm http 304 https://registry.npmjs.org/is-fullwidth-code-point
npm info attempt registry request try #1 at 8:08:57 PM
npm http request GET https://registry.npmjs.org/lcid
npm info attempt registry request try #1 at 8:08:57 PM
npm http request GET https://registry.npmjs.org/mem
npm http 304 https://registry.npmjs.org/lcid
npm http 304 https://registry.npmjs.org/mem
npm info attempt registry request try #1 at 8:08:57 PM
npm http request GET https://registry.npmjs.org/invert-kv
npm http 304 https://registry.npmjs.org/invert-kv
npm info lifecycle bigchaindb-driver#0.3.0~preinstall: bigchaindb-driver#0.3.0
Killed ....] - extract:moo-server: sill gunzTarPerm extractEntry lolex.js
Btw if I install them one by one, it does not run out of memory but it is not able to install the following dependencies:
bigchaindb-driver#0.3.0 /
+-- UNMET PEER DEPENDENCY babel-eslint#8.0.0
+-- UNMET PEER DEPENDENCY eslint#4.1.1
`-- UNMET PEER DEPENDENCY webpack#3.0.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN babel-loader#7.0.0 requires a peer of webpack#2 but none was installed.
npm WARN eslint-config-airbnb-base#11.3.2 requires a peer of eslint#^3.19.0 || ^4.5.0 but none was installed.
npm WARN eslint-config-airbnb-base#11.3.2 requires a peer of eslint-plugin-import#^2.7.0 but none was installed.
npm WARN eslint-config-ascribe#3.0.4 requires a peer of babel-eslint#^7.1.1 but none was installed.
npm WARN eslint-plugin-import#2.2.0 requires a peer of eslint#2.x - 3.x but none was installed.
Why with one method is working and with the other no? what is the difference between the commands and how could I fix it?
Edit:
Ubuntu 16.04 64bit
npm 3.10.10
nodejs 6.11.4
bigchaindb-driver 0.3.0
Package.json:
{
"_args": [
[
{
"raw": "bigchaindb-driver",
"scope": null,
"escapedName": "bigchaindb-driver",
"name": "bigchaindb-driver",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"/test_bcdb"
]
],
"_from": "bigchaindb-driver#latest",
"_id": "bigchaindb-driver#0.3.0",
"_inCache": true,
"_location": "/bigchaindb-driver",
"_nodeVersion": "7.8.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/bigchaindb-driver-0.3.0.tgz_1499272002696_0.40300624282099307"
},
"_npmUser": {
"name": "vrde",
"email": "agranzot#gmail.com"
},
"_npmVersion": "5.0.4",
"_phantomChildren": {},
"_requested": {
"raw": "bigchaindb-driver",
"scope": null,
"escapedName": "bigchaindb-driver",
"name": "bigchaindb-driver",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"_requiredBy": [
"#USER"
],
"_resolved": "https://registry.npmjs.org/bigchaindb-driver/-/bigchaindb-driver-0.3.0.tgz",
"_shasum": "2c71ab0e49dd7cbd6f760639767d4148e911e92b",
"_shrinkwrap": null,
"_spec": "bigchaindb-driver",
"_where": "/test_bcdb",
"author": {
"name": "BigchainDB"
},
"ava": {
"files": [
"test/*.js"
],
"source": [
"**/*.{js,jsx}",
"!node_modules/**/*",
"!dist/**/*"
],
"failFast": true,
"failWithoutAssertions": false,
"tap": true,
"powerAssert": false,
"require": [
"babel-register"
],
"babel": "inherit"
},
"browser": "./dist/browser/bigchaindb-driver.cjs2.min.js",
"bugs": {
"url": "https://github.com/bigchaindb/js-bigchaindb-driver/issues"
},
"dependencies": {
"browser-resolve": "^1.11.2",
"bs58": "^4.0.0",
"buffer": "^5.0.2",
"clone": "^2.1.0",
"core-js": "^2.4.1",
"decamelize": "^1.2.0",
"es6-promise": "^4.0.5",
"fetch-ponyfill": "^4.0.0",
"five-bells-condition": "^5.0.1",
"isomorphic-fetch": "^2.2.1",
"js-sha3": "^0.6.1",
"js-utility-belt": "^1.5.0",
"json-stable-stringify": "^1.0.1",
"query-string": "^4.3.4",
"sprintf-js": "^1.0.3",
"tweetnacl": "^1.0.0",
"yarn": "^0.27.5"
},
"description": "Node.js driver for BigchainDB",
"devDependencies": {
"ava": "^0.20.0",
"babel-cli": "^6.22.2",
"babel-eslint": "^7.1.1",
"babel-loader": "^7.0.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-es2015-modules-commonjs": "^6.23.0",
"babel-plugin-transform-export-extensions": "^6.22.0",
"babel-plugin-transform-object-assign": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015-no-commonjs": "0.0.2",
"babel-preset-latest": "^6.22.0",
"babel-runtime": "^6.22.0",
"cross-env": "^5.0.1",
"eslint": "^4.1.1",
"eslint-config-ascribe": "^3.0.4",
"eslint-plugin-import": "^2.2.0",
"husky": "^0.14.0",
"lint-staged": "^4.0.0",
"nyc": "^11.0.2",
"release-it": "^2.7.3",
"rimraf": "^2.5.4",
"sinon": "^2.3.4",
"webpack": "^3.0.0"
},
"directories": {},
"dist": {
"integrity": "sha512-zpy0xZ73PXfH2k5sNTukgd7drPvGrHcPdA520glBGRiv3pfENo3TBFtNfGBymGRVRfQ519GFR+vzCbmftCs24w==",
"shasum": "2c71ab0e49dd7cbd6f760639767d4148e911e92b",
"tarball": "https://registry.npmjs.org/bigchaindb-driver/-/bigchaindb-driver-0.3.0.tgz"
},
"gitHead": "a9fb0730727a7aca3d0f61662ad043dfca3b284f",
"homepage": "https://www.bigchaindb.com/",
"keywords": [
"bigchaindb",
"driver",
"blockchain",
"decentralized",
"dapp"
],
"license": "Apache-2.0",
"lint-staged": {
"*.js": [
"eslint"
]
},
"main": "./dist/node/index.js",
"maintainers": [
{
"name": "vrde",
"email": "agranzot#gmail.com"
}
],
"name": "bigchaindb-driver",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/bigchaindb/js-bigchaindb-driver.git"
},
"scripts": {
"build": "npm run clean && npm run build:cjs && npm run build:dist",
"build:bundle": "webpack",
"build:cjs": "cross-env BABEL_ENV=cjs babel ./src -d dist/node",
"build:dist": "cross-env NODE_ENV=production webpack -p",
"clean": "rimraf dist/bundle dist/node",
"lint": "eslint ./",
"precommit": "lint-staged",
"prepublishOnly": "npm update && npm run build",
"release": "./node_modules/release-it/bin/release.js --src.tagName='v%s' --github.release --npm.publish --non-interactive",
"release-major": "./node_modules/release-it/bin/release.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive",
"release-minor": "./node_modules/release-it/bin/release.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive",
"report-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
"test": "npm run lint && nyc ava test/ && npm run thanks && npm run report-coverage",
"thanks": "cowsay Hi, thanks for your interest in BigchainDB. We appreciate your contribution!"
},
"version": "0.3.0"
}
The package.json is the original from js-bigchaindb-driver
Finally, I found the source of the error:
npm install
Installs the package with the development dependencies and it is needed to add the flag --production not to get them.
So the equivalent will be:
npm install <package>
and
npm install --production
(assuming there is a package.json in the directory)

npm error code EPEERINVALID while installing mongoose-auto-increment and mongoose-simpledb

Hi I have encountered the following error while installing npm package mongoose-auto-increment and mongoose-simpledb both globally and locally.
The Error are as follows
mongoose-auto-increment
npm WARN peerDependencies The peer dependency mongoose#~4.0.0 included from mongoose-auto-increment will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "mongoose-auto-increment"
npm ERR! node v0.12.4
npm ERR! npm v2.11.2
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package mongoose does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer mongoose-auto-increment#4.0.0 wants mongoose#~4.0.0
npm ERR! Please include the following file with any support request:
npm ERR! /Users/febinp/Downloads/Shubham_application/Project/npm-debug.log
mongoose-simpledb
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "mongoose-simpledb"
npm ERR! node v0.12.4
npm ERR! npm v2.11.2
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package mongoose does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer mongoose-auto-increment#4.0.0 wants mongoose#~4.0.0
npm ERR! peerinvalid Peer mongoose-simpledb#4.0.3 wants mongoose#~3.8.18
npm ERR! Please include the following file with any support request:
npm ERR! /Users/febinp/Downloads/Shubham_application/Project/npm-debug.log
My Package.json is as follows
{
"name": "Project",
"private": true,
"version": "0.0.0",
"description": "a Sails application",
"keywords": [],
"dependencies": {
"async": "^1.4.0",
"ejs": "~0.8.4",
"grunt": "0.4.2",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-coffee": "~0.10.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-cssmin": "~0.9.0",
"grunt-contrib-jst": "~0.6.0",
"grunt-contrib-less": "0.11.1",
"grunt-contrib-uglify": "~0.4.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-sails-linker": "~0.9.5",
"grunt-sync": "~0.0.4",
"include-all": "~0.1.3",
"mongoose": "^4.1.0",
"mongoose-acl": "^0.2.3",
"mongoose-unique-validator": "^0.4.1",
"passport-local-mongoose": "^1.0.1",
"rc": "~0.5.0",
"sails": "~0.11.0",
"sails-disk": "~0.10.0"
},
"scripts": {
"debug": "node debug app.js",
"start": "node app.js"
},
"main": "app.js",
"repository": {
"type": "git",
"url": "git://github.com/febinp/ZATASA.git"
},
"author": "XYZ",
"license": ""
}
Can somebody help me as to why I am getting this error and what is the workaround?
In your package.json mongoose have a higher version 4.0.0. But mongoose-simpledb wants mongoose#~3.8.18.
mongoose-simpledb includes it's dependency mongoose-auto-increment. If you explicitly declare the _id field on your schema as type Number then simpledb will automatically invoke the mongoose-auto-increment plugin for that model.
Example from documentation itself:
exports.schema = {
_id: Number, // Causes simpledb to auto-increment _id for new documents.
creator: { type: Number, ref: 'User' }
};
I have tried changing the package.json to this and it worked:
{
"name": "Project",
"private": true,
"version": "0.0.0",
"description": "a Sails application",
"keywords": [],
"dependencies": {
"async": "^1.4.0",
"ejs": "~0.8.4",
"grunt": "0.4.2",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-coffee": "~0.10.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-cssmin": "~0.9.0",
"grunt-contrib-jst": "~0.6.0",
"grunt-contrib-less": "0.11.1",
"grunt-contrib-uglify": "~0.4.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-sails-linker": "~0.9.5",
"grunt-sync": "~0.0.4",
"include-all": "~0.1.3",
"mongoose": "~3.8.18",
"mongoose-simpledb": "~4.0.3",
"mongoose-acl": "^0.2.3",
"mongoose-unique-validator": "^0.4.1",
"passport-local-mongoose": "^1.0.1",
"rc": "~0.5.0",
"sails": "~0.11.0",
"sails-disk": "~0.10.0"
},
"scripts": {
"debug": "node debug app.js",
"start": "node app.js"
},
"main": "app.js",
"repository": {
"type": "git",
"url": "git://github.com/febinp/ZATASA.git"
},
"author": "XYZ",
"license": ""
}

Resources