Tailwind - Autoprefixer already exists - javascript

when installing tailwind I get the following error:
admin#admin-VirtualBox:~/Desktop/Code/react_app/client$ npm install -D tailwindcss postcss autoprefixer
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-app#1.0
npm ERR! Found: autoprefixer#9.7.1
npm ERR! node_modules/autoprefixer
npm ERR! autoprefixer#"^9.6.1" from postcss-preset-env#6.7.0
npm ERR! node_modules/postcss-preset-env
npm ERR! postcss-preset-env#"6.7.0" from react-scripts#3.2.0
npm ERR! node_modules/react-scripts
npm ERR! react-scripts#"3.2.0" from the root project
npm ERR! dev autoprefixer#"*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev autoprefixer#"*" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: postcss#8.4.13
npm ERR! node_modules/postcss
npm ERR! peer postcss#"^8.1.0" from autoprefixer#10.4.7
npm ERR! node_modules/autoprefixer
npm ERR! dev autoprefixer#"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/admin/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/admin/.npm/_logs/2022-05-17T19_33_57_115Z-debug-0.log
I am using the following package.json file:
{
"name": "react-app",
"version": "1.0",
"private": true,
"dependencies": {
"babel-eslint": "10.0.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router": "^6.3.0",
"react-scripts": "3.2.0",
"web3": "^1.6.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
This is the fill log:
0 verbose cli [
0 verbose cli '/usr/local/bin/node',
0 verbose cli '/usr/local/bin/npm',
0 verbose cli 'install',
0 verbose cli '-D',
0 verbose cli 'tailwindcss',
0 verbose cli 'postcss',
0 verbose cli 'autoprefixer'
0 verbose cli ]
1 info using npm#8.5.5
2 info using node#v16.15.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 8ms
6 timing config:load:builtin Completed in 8ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/home/admin/Desktop/Code/react_app/client/.npmrc Completed in 0ms
10 timing config:load:project Completed in 2ms
11 timing config:load:file:/home/admin/.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 14ms
19 timing npm:load:configload Completed in 14ms
20 timing npm:load:setTitle Completed in 0ms
21 timing config:load:flatten Completed in 2ms
22 timing npm:load:display Completed in 3ms
23 verbose logfile /home/admin/.npm/_logs/2022-05-17T19_33_57_115Z-debug-0.log
24 timing npm:load:logFile Completed in 2ms
25 timing npm:load:timers Completed in 0ms
26 timing npm:load:configScope Completed in 0ms
27 timing npm:load Completed in 19ms
28 timing arborist:ctor Completed in 1ms
29 silly logfile start cleaning logs, removing 1 files
30 timing idealTree:init Completed in 769ms
31 timing idealTree:userRequests Completed in 1ms
32 silly idealTree buildDeps
33 silly fetch manifest tailwindcss#*
34 timing arborist:ctor Completed in 0ms
35 http fetch GET 200 https://registry.npmjs.org/tailwindcss 796ms (cache hit)
36 silly fetch manifest postcss#*
37 http fetch GET 200 https://registry.npmjs.org/postcss 8ms (cache hit)
38 silly fetch manifest autoprefixer#*
39 http fetch GET 200 https://registry.npmjs.org/autoprefixer 5ms (cache hit)
40 timing idealTree Completed in 1610ms
41 timing command:install Completed in 1615ms
42 verbose stack Error: could not resolve
42 verbose stack at PlaceDep.failPeerConflict (/usr/local/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/place-dep.js:546:25)
42 verbose stack at PlaceDep.place (/usr/local/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/place-dep.js:197:21)
42 verbose stack at new PlaceDep (/usr/local/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/place-dep.js:71:10)
42 verbose stack at /usr/local/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/build-ideal-tree.js:964:31
42 verbose stack at Array.map (<anonymous>)
42 verbose stack at Arborist.[buildDepStep] (/usr/local/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/build-ideal-tree.js:964:8)
42 verbose stack at async Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/build-ideal-tree.js:216:7)
42 verbose stack at async Promise.all (index 1)
42 verbose stack at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/reify.js:153:5)
42 verbose stack at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:159:5)
43 verbose cwd /home/admin/Desktop/Code/react_app/client
44 verbose Linux 5.13.0-40-generic
45 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-D" "tailwindcss" "postcss" "autoprefixer"
46 verbose node v16.15.0
47 verbose npm v8.5.5
48 error code ERESOLVE
49 error ERESOLVE could not resolve
50 error
51 error While resolving: [1mreact-app[22m#[1m1.0[22m
51 error Found: [1mautoprefixer[22m#[1m9.7.1[22m[2m[22m
51 error [2mnode_modules/autoprefixer[22m
51 error [1mautoprefixer[22m#"[1m^9.6.1[22m" from [1mpostcss-preset-env[22m#[1m6.7.0[22m[2m[22m
51 error [2mnode_modules/postcss-preset-env[22m
51 error [1mpostcss-preset-env[22m#"[1m6.7.0[22m" from [1mreact-scripts[22m#[1m3.2.0[22m[2m[22m
51 error [2mnode_modules/react-scripts[22m
51 error [1mreact-scripts[22m#"[1m3.2.0[22m" from the root project
51 error [33mdev[39m [1mautoprefixer[22m#"[1m*[22m" from the root project
51 error
51 error Could not resolve dependency:
51 error [33mdev[39m [1mautoprefixer[22m#"[1m*[22m" from the root project
51 error
51 error Conflicting peer dependency: [1mpostcss[22m#[1m8.4.13[22m[2m[22m
51 error [2mnode_modules/postcss[22m
51 error [35mpeer[39m [1mpostcss[22m#"[1m^8.1.0[22m" from [1mautoprefixer[22m#[1m10.4.7[22m[2m[22m
51 error [2mnode_modules/autoprefixer[22m
51 error [33mdev[39m [1mautoprefixer[22m#"[1m*[22m" from the root project
51 error
51 error Fix the upstream dependency conflict, or retry
51 error this command with --force, or --legacy-peer-deps
51 error to accept an incorrect (and potentially broken) dependency resolution.
51 error
51 error See /home/admin/.npm/eresolve-report.txt for a full report.
52 verbose exit 1
53 timing npm Completed in 1755ms
54 verbose unfinished npm timer reify 1652816037244
55 verbose unfinished npm timer reify:loadTrees 1652816037246
56 verbose unfinished npm timer idealTree:buildDeps 1652816038016
57 verbose unfinished npm timer idealTree:#root 1652816038016
58 verbose code 1
59 error A complete log of this run can be found in:
59 error /home/admin/.npm/_logs/2022-05-17T19_33_57_115Z-debug-0.log
Any suggestions what I am doing wrong?
I appreciate your replies!

Your problem lies in using multiple conflicting versions of autoprefixer. Those come from different packages, for instance react-scripts. I noticed that, while your react is pretty up-to-date, your react-scripts are two major versions behind (3.2.0 vs. 5.0.1). This means there have been two times breaking changes in between, which could easily explain the conflict. If you aren't sure what that means, head over to Semver for an explanation.
I can't possibly tell if this is going to resolve the problem, but I would make a quick copy of the project, remove all dependencies from package.json and run npm i babel-eslint react react-dom react-router react-scripts web3. There are more sophisticated ways to do this, but this would quickly tell you, if updating all packages fixes the problem.

Related

NPM version is too old

I'm running on a problem. My Laravel project is an old one, and I can't run npm run dev.
Let's see some code:
php artisan laravel --version: Laravel Framework 5.8.38
node --version: v16.16.0 This is the actual version of Node installed
And the error when running NPM:
MacBook-Pro-de-Marcello:webroker marcellopato$ npm run dev
npm WARN npm npm does not support Node.js v16.16.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11.
npm WARN npm You can find the latest version at https://nodejs.org/
> # dev /Users/marcellopato/Documents/Sites/webroker
> npm run development
npm WARN npm npm does not support Node.js v16.16.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11.
npm WARN npm You can find the latest version at https://nodejs.org/
> # development /Users/marcellopato/Documents/Sites/webroker
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
node:events:505
throw er; // Unhandled 'error' event
^
Error: spawn node_modules/webpack/bin/webpack.js ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn node_modules/webpack/bin/webpack.js',
path: 'node_modules/webpack/bin/webpack.js',
spawnargs: [
'--progress',
'--hide-modules',
'--config=node_modules/laravel-mix/setup/webpack.config.js'
]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! # development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/marcellopato/.npm/_logs/2022-08-29T14_40_33_577Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! # dev: `npm run development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/marcellopato/.npm/_logs/2022-08-29T14_40_33_659Z-debug.log
The package.json:
"private": true,
"scripts": {
"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": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"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.18.0",
"bootstrap": "^4.1.3",
"cross-env": "^5.2.0",
"jquery": "^3.2",
"laravel-mix": "^2.1.14",
"lodash": "^4.17.11",
"popper.js": "^1.14.3",
"vue": "^2.5.16",
"vuedraggable": "^2.16.0"
},
"dependencies": {
"#tinymce/tinymce-vue": "^1.1.0",
"#websanova/vue-upload": "^0.2.14-beta",
"ajv": "^6.5.4",
"jquery-filepond": "^1.0.0",
"laravel-echo": "^1.4.0",
"moment": "^2.22.2",
"moment-timezone": "^0.5.21",
"node-sass": "^4.9.4",
"npm": "^6.4.1",
"pusher-js": "^4.3.1",
"tinymce-vue-2": "0.0.5",
"v-calendar": "^0.9.7",
"vlightbox": "^2.0.2",
"vue-chat-scroll": "^1.2.0",
"vue-google-charts": "^0.3.2",
"vue-moment": "^4.0.0",
"vue-scrollto": "^2.13.0",
"vue-simple-lightbox": "^1.1.0",
"vue-template-compiler": "^2.5.17",
"vue-the-mask": "^0.11.1",
"vue-toasted": "^1.1.25",
"vue-upload-component": "^2.8.14",
"vue-wysiwyg": "^1.7.2",
"vue2-daterange-picker": "^0.1.1",
"vue2-dropzone": "^3.5.2",
"vue2-editor": "^2.6.1"
}
}
I think the issue is relative to the actual version of Node, that is too new. Could be that? And if so, there's a way to know what version I had installed on my machine at the time I was working on the project for the first time?
Or the issue is a new one?
Now there's the log file:
0 verbose cli /Users/marcellopato/.nvm/versions/node/v16.17.0/bin/node /Users/marcellopato/.nvm/versions/node/v16.17.0/bin/npm
1 info using npm#8.15.0
2 info using node#v16.17.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:/Users/marcellopato/.nvm/versions/node/v16.17.0/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 3ms
7 timing config:load:cli Completed in 3ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/Users/marcellopato/Documents/Sites/webroker/.npmrc Completed in 0ms
10 timing config:load:project Completed in 19ms
11 timing config:load:file:/Users/marcellopato/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/Users/marcellopato/.nvm/versions/node/v16.17.0/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 2ms
18 timing config:load Completed in 33ms
19 timing npm:load:configload Completed in 33ms
20 timing npm:load:mkdirpcache Completed in 1ms
21 timing npm:load:mkdirplogs Completed in 1ms
22 verbose title npm install
23 verbose argv "install"
24 timing npm:load:setTitle Completed in 29ms
25 timing config:load:flatten Completed in 7ms
26 timing npm:load:display Completed in 11ms
27 verbose logfile logs-max:10 dir:/Users/marcellopato/.npm/_logs
28 verbose logfile /Users/marcellopato/.npm/_logs/2022-09-08T23_11_39_339Z-debug-0.log
29 timing npm:load:logFile Completed in 7ms
30 timing npm:load:timers Completed in 0ms
31 timing npm:load:configScope Completed in 0ms
32 timing npm:load Completed in 82ms
33 timing arborist:ctor Completed in 1ms
34 silly logfile start cleaning logs, removing 18 files
35 timing idealTree:init Completed in 1856ms
36 warn old lockfile
36 warn old lockfile The package-lock.json file was created with an old version of npm,
36 warn old lockfile so supplemental metadata must be fetched from the registry.
36 warn old lockfile so supplemental metadata must be fetched from the registry.
36 warn old lockfile
36 warn old lockfile This is a one-time fix-up, please be patient...
36 warn old lockfile
37 silly inflate node_modules/#tinymce/tinymce-vue
38 silly inflate node_modules/#types/node
39 silly inflate node_modules/#types/semver
40 silly inflate node_modules/#websanova/vue-upload
41 silly logfile done cleaning log files
42 http fetch GET 200 https://registry.npmjs.org/#types%2fsemver 414ms (cache revalidated)
43 silly inflate node_modules/abbrev
44 http fetch GET 200 https://registry.npmjs.org/npm 2310ms (cache revalidated)
45 http fetch GET 200 https://registry.npmjs.org/abbrev 155ms (cache revalidated)
46 silly inflate node_modules/accepts
47 http fetch GET 200 https://registry.npmjs.org/#types%2fnode 579ms (cache updated)
48 silly inflate node_modules/acorn
49 http fetch GET 200 https://registry.npmjs.org/accepts 84ms (cache revalidated)
50 silly inflate node_modules/acorn-dynamic-import
51 http fetch GET 200 https://registry.npmjs.org/acorn 73ms (cache revalidated)
52 silly inflate node_modules/acorn-dynamic-import/node_modules/acorn
53 silly inflate node_modules/adjust-sourcemap-loader
54 http fetch GET 200 https://registry.npmjs.org/adjust-sourcemap-loader 62ms (cache revalidated)
55 silly inflate node_modules/adjust-sourcemap-loader/node_modules/camelcase
56 http fetch GET 200 https://registry.npmjs.org/camelcase 82ms (cache revalidated)
57 silly inflate node_modules/adjust-sourcemap-loader/node_modules/lodash.defaults
58 http fetch GET 200 https://registry.npmjs.org/lodash.defaults 59ms (cache revalidated)
59 silly inflate node_modules/adjust-sourcemap-loader/node_modules/lodash.defaults/node_modules/lodash.assign
60 http fetch GET 200 https://registry.npmjs.org/lodash.assign 63ms (cache revalidated)
61 silly inflate node_modules/ajv
62 http fetch GET 200 https://registry.npmjs.org/acorn-dynamic-import 328ms (cache revalidated)
63 silly inflate node_modules/ajv-keywords
64 http fetch GET 200 https://registry.npmjs.org/ajv 54ms (cache revalidated)
65 silly inflate node_modules/align-text
66 http fetch GET 200 https://registry.npmjs.org/ajv-keywords 51ms (cache revalidated)
67 silly inflate node_modules/align-text/node_modules/kind-of
68 http fetch GET 200 https://registry.npmjs.org/kind-of 48ms (cache revalidated)
69 silly inflate node_modules/alphanum-sort
70 http fetch GET 200 https://registry.npmjs.org/alphanum-sort 66ms (cache revalidated)
71 silly inflate node_modules/amdefine
72 http fetch GET 200 https://registry.npmjs.org/#tinymce%2ftinymce-vue 1189ms (cache revalidated)
73 silly inflate node_modules/ansi-html
74 http fetch GET 200 https://registry.npmjs.org/#websanova%2fvue-upload 1200ms (cache revalidated)
75 silly inflate node_modules/ansi-regex
76 http fetch GET 200 https://registry.npmjs.org/amdefine 48ms (cache revalidated)
77 silly inflate node_modules/ansi-styles
78 http fetch GET 200 https://registry.npmjs.org/ansi-html 54ms (cache revalidated)
79 silly inflate node_modules/anymatch
80 http fetch GET 200 https://registry.npmjs.org/ansi-regex 50ms (cache revalidated)
81 silly inflate node_modules/aproba
82 http fetch GET 200 https://registry.npmjs.org/ansi-styles 62ms (cache revalidated)
83 silly inflate node_modules/are-we-there-yet
84 http fetch GET 200 https://registry.npmjs.org/align-text 274ms (cache revalidated)
85 silly inflate node_modules/argparse
86 http fetch GET 200 https://registry.npmjs.org/anymatch 55ms (cache revalidated)
87 silly inflate node_modules/arr-diff
88 http fetch GET 200 https://registry.npmjs.org/aproba 52ms (cache revalidated)
89 silly inflate node_modules/arr-flatten
90 http fetch GET 200 https://registry.npmjs.org/are-we-there-yet 79ms (cache revalidated)
91 silly inflate node_modules/arr-union
92 http fetch GET 200 https://registry.npmjs.org/argparse 70ms (cache revalidated)
93 silly inflate node_modules/array-find-index
94 http fetch GET 200 https://registry.npmjs.org/arr-diff 66ms (cache revalidated)
95 silly inflate node_modules/array-flatten
96 http fetch GET 200 https://registry.npmjs.org/arr-flatten 66ms (cache revalidated)
97 silly inflate node_modules/array-includes
98 http fetch GET 200 https://registry.npmjs.org/array-find-index 77ms (cache revalidated)
99 silly inflate node_modules/array-union
100 http fetch GET 200 https://registry.npmjs.org/array-flatten 73ms (cache revalidated)
101 silly inflate node_modules/array-uniq
102 http fetch GET 200 https://registry.npmjs.org/arr-union 102ms (cache revalidated)
103 silly inflate node_modules/array-unique
104 http fetch GET 200 https://registry.npmjs.org/array-includes 90ms (cache revalidated)
105 silly inflate node_modules/asn1
106 http fetch GET 200 https://registry.npmjs.org/array-union 108ms (cache revalidated)
107 silly inflate node_modules/asn1.js
108 http fetch GET 200 https://registry.npmjs.org/array-uniq 106ms (cache revalidated)
109 silly inflate node_modules/assert
110 http fetch GET 200 https://registry.npmjs.org/array-unique 93ms (cache revalidated)
Probably your current npm is incompatible with the node version.
I advise you to reinstall npm and then install the node again.
Delete npm
Mac:
sudo npm uninstall -g npm
Windows:
npm uninstall -g npm
Install node.js
https://nodejs.org

Npm publish gives invalid directory

I am currently working on a CLI to bootstrap react apps but I've run into a problem! I previously had made it in typescript and then I moved it over to javascript, like fully deleting everything and then making a fresh javascript project in that same directory and when I run any npm or yarn commands like npm start or any script that has to start a file is giving this output:
npm ERR! code ENOTDIR
npm ERR! path D:\Projects\npm-packages\reactize\index.js
npm ERR! ENOTDIR invalid cwd D:\Projects\Github projects\reactize\index.js
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\sinha\AppData\Local\npm-cache\_logs\2021-07-01T04_30_47_911Z-debug.log
After This, I moved it over to a different directory thinking it will solve the problem but it didn't! exact same output with just the path difference now pointing to the folder I moved the project over to! Even npm publish is failing with the same error. Here is the full log:
0 verbose cli [
0 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli 'publish'
0 verbose cli ]
1 info using npm#7.6.0
2 info using node#v15.11.0
3 timing config:load:defaults Completed in 3ms
4 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 7ms
5 timing config:load:builtin Completed in 8ms
6 timing config:load:cli Completed in 3ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:D:\Projects\Github projects\reactize\.npmrc Completed in 0ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:C:\Users\sinha\.npmrc Completed in 1ms
11 timing config:load:user Completed in 2ms
12 timing config:load:file:C:\Users\sinha\AppData\Roaming\npm\etc\npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 1ms
17 timing config:load:setEnvs Completed in 2ms
18 timing config:load Completed in 22ms
19 verbose npm-session 861e538ded110b88
20 timing npm:load Completed in 44ms
21 verbose publish [ '.' ]
22 timing command:publish Completed in 14ms
23 verbose stack Error: ENOTDIR invalid cwd D:\Projects\Github projects\reactize\index.js
23 verbose stack at Glob._readdirError (C:\Program Files\nodejs\node_modules\npm\node_modules\glob\glob.js:592:21)
23 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\glob\glob.js:553:12
23 verbose stack at go$readdir$cb (C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:214:14)
23 verbose stack at FSReqCallback.oncomplete (node:fs:190:23)
24 verbose cwd D:\Projects\Github projects\reactize
25 verbose Windows_NT 10.0.19042
26 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "publish"
27 verbose node v15.11.0
28 verbose npm v7.6.0
29 error code ENOTDIR
30 error path D:\Projects\Github projects\reactize\index.js
31 error ENOTDIR invalid cwd D:\Projects\Github projects\reactize\index.js
32 verbose exit 1
and here is the package.json:
{
"name": "reactize",
"version": "2.0.0",
"description": "A simple way to bootstrap your react apps!",
"main": "index.js",
"directories": {
"lib": "lib",
"bin": "index.js"
},
"scripts": {
"start": "node .",
"test": "jest",
"path": "yarn version --patch",
"minor": "yarn version --minor",
"major": "yarn version --major",
"prepublishOnly": "node scripts/genTemplateFiles.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/YT-GameWorks/reactize.git"
},
"keywords": [
"cli",
"boilerplate",
"electron",
"react",
"typescript"
],
"author": "Game Glide <sinha.soham#outlook.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/YT-GameWorks/reactize/issues"
},
"homepage": "https://github.com/YT-GameWorks/reactize#readme",
"dependencies": {
"chalk": "^4.1.1",
"consola": "^2.15.3",
"enquirer": "^2.3.6",
"execa": "^5.1.1",
"fs-extra": "^10.0.0",
"jest": "^27.0.6",
"listr": "^0.14.3"
}
}
It's worth noting that scripts like yarn major etc.. which have nothing to do with the project work properly.

eslint npm ERR! 404 Not Found - GET https://registry.npmjs.org/eslist - Not found

I am trying to clean up my Javascript code and then to migrate to typescript. I installed node.js npm and eslint on Ubuntu 20.04. I ran npm -init and eslint -init.
$ npx eslist util.js
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/eslist - Not found
npm ERR! 404
npm ERR! 404 'eslist#latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jcobban/.npm/_logs/2021-03-14T19_42_22_328Z-debug.log
Install for eslist#latest failed with code 1
$ npm cache verify
Cache verified and compressed (~/.npm/_cacache):
Content verified: 296 (6848713 bytes)
Index entries: 449
Finished in 0.367s
I cannot find any report on stackoverflow in over a year with an explanation of this error or how to get around it.
$ more .eslintrc.js
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
}
};
log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli '/usr/share/npm/bin/npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'eslist#latest',
1 verbose cli '--global',
1 verbose cli '--prefix',
1 verbose cli '/home/jcobban/.npm/_npx/96863',
1 verbose cli '--loglevel',
1 verbose cli 'error',
1 verbose cli '--json' ]
2 info using npm#6.14.4
3 info using node#v10.19.0
4 verbose npm-session b1a2059d3c7803e8
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 404 https://registry.npmjs.org/eslist 635ms
8 http fetch GET 404 https://registry.npmjs.org/eslist 391ms
9 silly fetchPackageMetaData error for eslist#latest 404 Not Found - GET https:/
/registry.npmjs.org/eslist - Not found
10 timing stage:rollbackFailedOptional Completed in 2ms
11 timing stage:runTopLevelLifecycles Completed in 1043ms
12 verbose stack Error: 404 Not Found - GET https://registry.npmjs.org/eslist -
Not found
12 verbose stack at res.buffer.catch.then.body (/usr/share/npm/node_modules/
npm-registry-fetch/check-response.js:104:15)
12 verbose stack at process._tickCallback (internal/process/next_tick.js:68:
7)
13 verbose statusCode 404
14 verbose pkgid eslist#latest
15 verbose cwd /home/jcobban/public_html/jscripts
16 verbose Linux 5.8.0-7642-generic
17 verbose argv "/usr/bin/node" "/usr/share/npm/bin/npm-cli.js" "install" "eslis
t#latest" "--global" "--prefix" "/home/jcobban/.npm/_npx/96863" "--loglevel" "er
ror" "--json"
18 verbose node v10.19.0
19 verbose npm v6.14.4
20 error code E404
21 error 404 Not Found - GET https://registry.npmjs.org/eslist - Not found
22 error 404
23 error 404 'eslist#latest' is not in the npm registry.
24 error 404 You should bug the author to publish it (or use the name yourself!)
25 error 404 Note that you can also install from a
26 error 404 tarball, folder, http url, or git url.
27 verbose exit [ 1, true ]
I entered the URL https://registry.npmjs.org/eslist into my browser and got back {"error":"Not found"}
Note that I have NEVER used node.js or npm or npx before today so I have absolutely no experience to guide me. I am merely going by what is in the page https://eslint.org/docs/user-guide/getting-started. I just want to clean up my code.
stupid typo. I should have types eslint not eslist

Unable to resolve dependency tree Reactjs

I am trying to install react-tinder-card in my current project.So i am tring to install the react-tinder-card but after i use the command
npm install --save react-tinder-card
All i can see in my console is:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: tinder-clone#0.1.0
npm ERR! Found: react#17.0.1
npm ERR! node_modules/react
npm ERR! react#"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.8.0" from react-tinder-card#1.3.1
npm ERR! node_modules/react-tinder-card
npm ERR! react-tinder-card#"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/nero/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/nero/.npm/_logs/2020-11-06T16_36_39_957Z-debug.log
When i opened the debug.log file, i found this:
0 verbose cli [
0 verbose cli '/usr/bin/node',
0 verbose cli '/usr/bin/npm',
0 verbose cli 'install',
0 verbose cli '--save',
0 verbose cli 'react-tinder-card'
0 verbose cli ]
1 info using npm#7.0.3
2 info using node#v15.0.1
3 timing config:load:defaults Completed in 3ms
4 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 0ms
5 timing config:load:builtin Completed in 1ms
6 timing config:load:cli Completed in 3ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:/home/nero/Documents/MERN/tinder-clone/.npmrc Completed in 1ms
9 timing config:load:project Completed in 2ms
10 timing config:load:file:/home/nero/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/usr/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 12ms
19 verbose npm-session b46c4469ef66a9f2
20 timing npm:load Completed in 19ms
21 timing arborist:ctor Completed in 0ms
22 timing idealTree:init Completed in 1413ms
23 timing idealTree:userRequests Completed in 3ms
24 silly idealTree buildDeps
25 silly fetch manifest react-tinder-card#*
26 http fetch GET 200 https://registry.npmjs.org/react-tinder-card 188ms (from cache)
27 silly fetch manifest react#^17.0.1
28 timing arborist:ctor Completed in 0ms
29 http fetch GET 304 https://registry.npmjs.org/react 1196ms (from cache)
30 timing idealTree Completed in 2812ms
31 timing command:install Completed in 2815ms
32 verbose stack Error: unable to resolve dependency tree
32 verbose stack at Arborist.[failPeerConflict] (/usr/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/build-ideal-tree.js:1011:25)
32 verbose stack at Arborist.[loadPeerSet] (/usr/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/build-ideal-tree.js:991:36)
32 verbose stack at async Arborist.[buildDepStep] (/usr/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/build-ideal-tree.js:760:11)
32 verbose stack at async Arborist.buildIdealTree (/usr/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/build-ideal-tree.js:202:7)
32 verbose stack at async Promise.all (index 1)
32 verbose stack at async Arborist.reify (/usr/lib/node_modules/npm/node_modules/#npmcli/arborist/lib/arborist/reify.js:121:5)
32 verbose stack at async install (/usr/lib/node_modules/npm/lib/install.js:40:5)
33 verbose cwd /home/nero/Documents/MERN/tinder-clone
34 verbose Linux 5.4.0-52-generic
35 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "--save" "react-tinder-card"
36 verbose node v15.0.1
37 verbose npm v7.0.3
38 error code ERESOLVE
39 error ERESOLVE unable to resolve dependency tree
40 error
41 error While resolving: [1mtinder-clone[22m#[1m0.1.0[22m
41 error Found: [1mreact[22m#[1m17.0.1[22m[2m[22m
41 error [2mnode_modules/react[22m
41 error [1mreact[22m#"[1m^17.0.1[22m" from the root project
41 error
41 error Could not resolve dependency:
41 error [35mpeer[39m [1mreact[22m#"[1m^16.8.0[22m" from [1mreact-tinder-card[22m#[1m1.3.1[22m[2m[22m
41 error [2mnode_modules/react-tinder-card[22m
41 error [1mreact-tinder-card[22m#"[1m*[22m" from the root project
41 error
41 error Fix the upstream dependency conflict, or retry
41 error this command with --force, or --legacy-peer-deps
41 error to accept an incorrect (and potentially broken) dependency resolution.
41 error
41 error See /home/nero/.npm/eresolve-report.txt for a full report.
42 verbose exit 1
I don't understand what that means. Please help me find the solution.Any sort of help would be appreciated.
Thank you in advance.
$ npm install --save react-tinder-card --legacy-peer-deps
This error comes from version 7.x of npm.
Please try again with the --legacy-peer-deps option.
What this error basically says is that react-tinder-card#1.3.1 in it's peer dependencies has react#"^16.8.0". So it needs that version of react to function properly. On your tinder-clone#0.1.0 application you currently have react#17.0.1.
This problem can be solved manually by just installing version of react that react-tinder-card#1.3.1 needs which is react#"^16.8.0", so you need to downgrade your version to run the package.
The --legacy-peer-deps flag was introduced with v7 of npm as a way to bypass peerDependency auto-installation; it tells NPM to ignore peer deps and proceed with the installation anyway. This can cause some unwanted behavior and I would not suggest it.
Downgrade to npm v6. It should fix the issue.
npm install -g npm#6
This happens when you are trying to clone a project which is built a long time ago, and project dependencies have moved on to newer versions.
Just run below code. Works fine for me every time. You should also see this solution with the error.
npm install --legacy-peer-deps
https://www.apollographql.com/docs/react/migrating/apollo-client-3-migration/
The react-apollo package has been deprecated, and the functionality offered by each of the above packages can now be accessed from #apollo/client directly:
#apollo/react-hooks -> now available directly from #apollo/client
#apollo/react-components -> now available from #apollo/client/react/components
#apollo/react-hoc -> now available from #apollo/client/react/hoc
#apollo/react-ssr -> now available from #apollo/client/react/ssr
#apollo/react-testing -> now available from #apollo/client/testing
I had the same error above. I installed npm v6.7. I reinstalled Netlify CMS and Gatsby:
npm install netlify-cms-app#2.9 gatsby-plugin-netlify-cms#^4.0.0
I don't have anything under the static folder except a favicon.ico file. No admin folder and no .yml file.
Downgrading the npm version to version 6 helped me resolve the issue.
Upgrade to npm v8. It should fix the issue.
npm install -g npm#8
since using --legacy-peer-deps flag wont install the dev-dependencies your react version, use --force instead.

npm won't install forked git repo

trying to install a forked version of ng2-smart-table for my app but npm is not doing it.
I've used
npm install git+http://github.com/myusername/ng2-smart-table.git
npm install git://github.com/myusername/ng2-smart-table.git
npm install github.com/myusername/ng2-smart-table
and many other variations. I get the following error.
npm ERR! addLocal Could not install /tmp/npm-24904-e690204a/git-cache-97763c70/bb5d603024d75ce8a664d949a646ca7c7c29b0a0
npm ERR! Linux 3.10.0-693.5.2.el7.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "git://github.com/myusername/ng2-smart-table.git"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! No version provided in package.json
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/myname/my-app/npm-debug.log
[root#stackc-pre-staging my-app]# vim /home/myname/my-app/npm-debug.log
[root#stackc-pre-staging my-app]# npm install git+http://github.com/myusername/ng2-smart-table.git
npm ERR! addLocal Could not install /tmp/npm-25075-02c22b92/git-cache-ba6c0ee9/bb5d603024d75ce8a664d949a646ca7c7c29b0a0
npm ERR! Linux 3.10.0-693.5.2.el7.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "git+http://github.com/myusername/ng2-smart-table.git"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! No version provided in package.json
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/myname/my-app/npm-debug.log
Contents of /home/myname/my-app/npm-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'install',
1 verbose cli 'git+http://github.com/myusername/ng2-smart-table.git' ]
2 info using npm#3.10.10
3 info using node#v6.11.1
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData git+http://github.com/myusername/ng2-smart-table.git
8 silly fetchOtherPackageData git+http://github.com/myusername/ng2-smart-table.git
9 silly cache add args [ 'git+http://github.com/myusername/ng2-smart-table.git', null ]
10 verbose cache add spec git+http://github.com/myusername/ng2-smart-table.git
11 silly cache add parsed spec Result {
11 silly cache add raw: 'git+http://github.com/myusername/ng2-smart-table.git',
11 silly cache add scope: null,
11 silly cache add escapedName: null,
11 silly cache add name: null,
11 silly cache add rawSpec: 'git+http://github.com/myusername/ng2-smart-table.git',
11 silly cache add spec: 'http://github.com/myusername/ng2-smart-table.git',
11 silly cache add type: 'git' }
12 verbose addRemoteGit caching git+http://github.com/myusername/ng2-smart-table.git
13 silly tryClone cloning git+http://github.com/myusername/ng2-smart-table.git via git+http://github.com/myusername/ng2-smart-table.git
14 verbose tryClone git-http-github-com-myusername-ng2-smart-table-git-6513bc33 not in flight; caching
15 verbose correctMkdir /root/.npm/_git-remotes correctMkdir not in flight; initializing
16 info git [ 'clone',
16 info git '--template=/root/.npm/_git-remotes/_templates',
16 info git '--mirror',
16 info git 'http://github.com/myusername/ng2-smart-table.git',
16 info git '/root/.npm/_git-remotes/git-http-github-com-myusername-ng2-smart-table-git-6513bc33' ]
17 verbose mirrorRemote git+http://github.com/myusername/ng2-smart-table.git git clone http://github.com/myusername/ng2-smart-table.git Cloning into bare repository '/root/.npm/_git-remotes/git-http-github-com-myusername-ng2-smart-table-git-6513bc33'...
18 verbose correctMkdir /root/.npm/_git-remotes correctMkdir not in flight; initializing
19 verbose setPermissions git+http://github.com/myusername/ng2-smart-table.git set permissions on /root/.npm/_git-remotes/git-http-github-com-myusername-ng2-smart-table-git-6513bc33
20 verbose resolveHead git+http://github.com/myusername/ng2-smart-table.git original treeish: master
21 info git [ 'rev-list', '-n1', 'master' ]
22 silly resolveHead git+http://github.com/myusername/ng2-smart-table.git resolved treeish: bb5d603024d75ce8a664d949a646ca7c7c29b0a0
23 verbose resolveHead git+http://github.com/myusername/ng2-smart-table.git resolved Git URL: git+ssh://git#github.com/myusername/ng2-smart-table.git#bb5d603024d75ce8a664d949a646ca7c7c29b0a0
24 silly resolveHead Git working directory: /tmp/npm-25075-02c22b92/git-cache-ba6c0ee9/bb5d603024d75ce8a664d949a646ca7c7c29b0a0
25 info git [ 'clone',
25 info git '/root/.npm/_git-remotes/git-http-github-com-myusername-ng2-smart-table-git-6513bc33',
25 info git '/tmp/npm-25075-02c22b92/git-cache-ba6c0ee9/bb5d603024d75ce8a664d949a646ca7c7c29b0a0' ]
26 verbose cloneResolved git+http://github.com/myusername/ng2-smart-table.git clone Cloning into '/tmp/npm-25075-02c22b92/git-cache-ba6c0ee9/bb5d603024d75ce8a664d949a646ca7c7c29b0a0'...
26 verbose cloneResolved done.
27 info git [ 'checkout', 'bb5d603024d75ce8a664d949a646ca7c7c29b0a0' ]
28 verbose checkoutTreeish git+http://github.com/myusername/ng2-smart-table.git checkout Note: checking out 'bb5d603024d75ce8a664d949a646ca7c7c29b0a0'.
28 verbose checkoutTreeish
28 verbose checkoutTreeish You are in 'detached HEAD' state. You can look around, make experimental
28 verbose checkoutTreeish changes and commit them, and you can discard any commits you make in this
28 verbose checkoutTreeish state without impacting any branches by performing another checkout.
28 verbose checkoutTreeish
28 verbose checkoutTreeish If you want to create a new branch to retain commits you create, you may
28 verbose checkoutTreeish do so (now or later) by using -b with the checkout command again. Example:
28 verbose checkoutTreeish
28 verbose checkoutTreeish git checkout -b new_branch_name
28 verbose checkoutTreeish
28 verbose checkoutTreeish HEAD is now at bb5d603... Added a show/hide variable to column settings so that you can toggle visibility of columns
29 info git [ 'submodule', '-q', 'update', '--init', '--recursive' ]
30 verbose updateSubmodules git+http://github.com/myusername/ng2-smart-table.git submodule update
31 error addLocal Could not install /tmp/npm-25075-02c22b92/git-cache-ba6c0ee9/bb5d603024d75ce8a664d949a646ca7c7c29b0a0
32 silly fetchPackageMetaData Error: No version provided in package.json
32 silly fetchPackageMetaData at /usr/lib/node_modules/npm/lib/cache/add-local.js:73:17
32 silly fetchPackageMetaData at /usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:356:5
32 silly fetchPackageMetaData at checkBinReferences_ (/usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:320:45)
32 silly fetchPackageMetaData at final (/usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:354:3)
32 silly fetchPackageMetaData at then (/usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:124:5)
32 silly fetchPackageMetaData at /usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:243:12
32 silly fetchPackageMetaData at /usr/lib/node_modules/npm/node_modules.bundled/graceful-fs/graceful-fs.js:78:16
32 silly fetchPackageMetaData at tryToString (fs.js:456:3)
32 silly fetchPackageMetaData at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:443:12)
32 silly fetchPackageMetaData error for git+http://github.com/myusername/ng2-smart-table.git Error: No version provided in package.json
32 silly fetchPackageMetaData at /usr/lib/node_modules/npm/lib/cache/add-local.js:73:17
32 silly fetchPackageMetaData at /usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:356:5
32 silly fetchPackageMetaData at checkBinReferences_ (/usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:320:45)
32 silly fetchPackageMetaData at final (/usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:354:3)
32 silly fetchPackageMetaData at then (/usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:124:5)
32 silly fetchPackageMetaData at /usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:243:12
32 silly fetchPackageMetaData at /usr/lib/node_modules/npm/node_modules.bundled/graceful-fs/graceful-fs.js:78:16
32 silly fetchPackageMetaData at tryToString (fs.js:456:3)
32 silly fetchPackageMetaData at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:443:12)
33 silly rollbackFailedOptional Starting
34 silly rollbackFailedOptional Finishing
35 silly runTopLevelLifecycles Finishing
36 silly install printInstalled
37 verbose stack Error: No version provided in package.json
37 verbose stack at /usr/lib/node_modules/npm/lib/cache/add-local.js:73:17
37 verbose stack at /usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:356:5
37 verbose stack at checkBinReferences_ (/usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:320:45)
37 verbose stack at final (/usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:354:3)
37 verbose stack at then (/usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:124:5)
37 verbose stack at /usr/lib/node_modules/npm/node_modules.bundled/read-package-json/read-json.js:243:12
37 verbose stack at /usr/lib/node_modules/npm/node_modules.bundled/graceful-fs/graceful-fs.js:78:16
37 verbose stack at tryToString (fs.js:456:3)
37 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:443:12)
38 verbose cwd /home/myname/my-app
39 error Linux 3.10.0-693.5.2.el7.x86_64
40 error argv "/usr/bin/node" "/usr/bin/npm" "install" "git+http://github.com/myusername/ng2-smart-table.git"
41 error node v6.11.1
42 error npm v3.10.10
43 error No version provided in package.json
44 error If you need help, you may report this error at:
44 error <https://github.com/npm/npm/issues>
45 verbose exit [ 1, true ]
Is this a permissions issue? Or is there something wrong with the way npm is set up? Any help would be appreciated.
Try recreating package.json for that repo with npm init . command and go through all the steps.
Remember having correct repository link in the repository section.
I had the same problem but above helped.
Problem 1: The repo on your post does not exist.
You might've used the wrong repo url.
Use the correct repo url: https://github.com/akveo/ng2-smart-table
Problem 2: The repo does not have a version specified in the package.json
Just fork it and add a version in the package.json file.
Or, use the npm version,
npm install --save ng2-smart-table

Categories