while running meteor app i got this error message - meteor

iron-router: updating npm dependencies -- connect...
npm ERR! Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR! { [Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/john/.npm/connect/2.9.0/package/package.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/node" "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/npm" "install" "connect#2.9.0"
npm ERR! cwd /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-iwgw8d
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /home/john/.npm/connect/2.9.0/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-iwgw8d/npm-debug.log
npm ERR! not ok code 0
iron-router: updating npm dependencies -- connect...
npm ERR! Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR! { [Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/home/john/.npm/connect/2.9.0/package/package.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/node" "/home/john/.meteor/packages/meteor-tool/.1.0.35.ftql1v++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/npm" "install" "connect#2.9.0"
npm ERR! cwd /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-19br3u6
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /home/john/.npm/connect/2.9.0/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/home/john/.npm/connect/2.9.0/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/john/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-19br3u6/npm-debug.log
npm ERR! not ok code 0
=> Errors prevented startup:
While Building package `iron-router`:
error: couldn't install npm package
While Building package `iron-router`:
error: couldn't install npm package
=> Your application has errors. Waiting for file change.

If you run your initial command with user permissions (which is not clear from your answer - please print the command next time), then it needs to be able to access (read, write, execute) other directories with the same permissions.
You can change ownership with:
chown -R $USER <directory>
where in your case <directory> is /home/john and -R is for recursive, so it will change all subdirectories too, which is exactly what you want.
See here for more details.

Related

Can not install sass

I tried installing node-sass and it worked but the code in main.scss is not automatically transferred in style.css, then i deleted all the files including package.scss and tried reinstalling node-sass but i get these errors.
PS D:\web course\iti\bootstrap\sass> npm install node-sass
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN deprecated uuid#3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic.
See https://v8.dev/blog/math-random for details.
npm WARN sass#1.0.0 No description
npm WARN sass#1.0.0 No repository field.
npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path D:\web course\iti\bootstrap\sass\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink 'D:\web course\iti\bootstrap\sass\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node'
npm ERR! [OperationalError: EPERM: operation not permitted, unlink 'D:\web course\iti\bootstrap\sass\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node'] {
npm ERR! cause: [Error: EPERM: operation not permitted, unlink 'D:\web course\iti\bootstrap\sass\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'D:\\web course\\iti\\bootstrap\\sass\\node_modules\\.node-sass.DELETE\\vendor\\win32-x64-83\\binding.node'
npm ERR! },
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'D:\\web course\\iti\\bootstrap\\sass\\node_modules\\.node-sass.DELETE\\vendor\\win32-x64-83\\binding.node',
npm ERR! parent: 'sass'
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 ERR! A complete log of this run can be found in:
npm ERR! C:\Users\TECH VALLEY\AppData\Roaming\npm-cache\_logs\2021-08-11T14_25_50_073Z-debug.log
PS D:\web course\iti\bootstrap\sass>
try
npm uninstall node-sass
then install again

npm ERR! Linux 4.4.0-31-generic

what's the cause of this error, and how do I fix it. I'm trying to install NPM and Nodejs. Please, quick response needed. This is truly pulling my hairs. I never knew it is this hard to deploy a meteor app because of all the dependencies.
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/opt/meteor/.nvm/versions/node/v4.8.4/bin/node" "/opt/meteor/.nvm/versions/node/v4.8.4/bin/npm" "rebuild" "--update-binary"
npm ERR! node v4.8.4
npm ERR! npm v2.15.11
npm ERR! path /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/sshpk/bin\sshpk-conv
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/sshpk/bin\sshpk-conv'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/npm-debug.log
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/opt/meteor/.nvm/versions/node/v4.8.4/bin/node" "/opt/meteor/.nvm/versions/node/v4.8.4/bin/npm" "install"
npm ERR! node v4.8.4
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! meteor-dev-bundle#0.0.0 install: `node npm-rebuild.js`
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the meteor-dev-bundle#0.0.0 install script 'node npm-rebuild.js'.
npm ERR! This is most likely a problem with the meteor-dev-bundle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node npm-rebuild.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs meteor-dev-bundle
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls meteor-dev-bundle
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /opt/meteor/webapps/schoolapps/bundle/programs/server/npm-debug.log
meteor#christdoes:~/webapps/schoolapps/bundle/programs/server$ ^C
meteor#christdoes:~/webapps/schoolapps/bundle/programs/server$

Telescope on Meteor running error

I'm currently trying to run Telescope on Meteor. I've installed meteor as well and cloned Telescope in my Documents folder. However, when I run 'meteor' on Telescope, I get this error:
*Renzzes-MacBook-Air:Telescope renzzemistal$ meteor
[[[[[ ~/Documents/Telescope ]]]]]
=> Started proxy.
=> Started MongoDB.
telescope:email: updating npm dependencies -- html-to-text...
npm WARN package.json packages-for-meteor-smartpackage-zf7sqf#0.0.0 No
description
npm WARN package.json packages-for-meteor-smartpackage-zf7sqf#0.0.0 No
repository field.
npm WARN package.json packages-for-meteor-smartpackage-zf7sqf#0.0.0 No README
data
npm WARN engine html-to-text#0.1.0: wanted: {"node":"~0.8.0"} (current:
{"node":"0.10.36","npm":"1.4.28"})
npm ERR! Error: EACCES, mkdir
'/Users/renzzemistal/.npm/underscore.string/2.3.3'
npm ERR! { [Error: EACCES, mkdir
'/Users/renzzemistal/.npm/underscore.string/2.3.3']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/renzzemistal/.npm/underscore.string/2.3.3',
npm ERR! parent: 'html-to-text' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 14.3.0
npm ERR! command
"/Users/renzzemistal/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/renzzemistal/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
"install"
npm ERR! cwd
/Users/renzzemistal/Documents/Telescope/packages/telescope-email/.npm/package-new-yrsnn6
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! path /Users/renzzemistal/.npm/underscore.string/2.3.3
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir
'/Users/renzzemistal/.npm/underscore.string/2.3.3'
npm ERR! not ok code 0
telescope:newsletter: updating npm dependencies -- html-to-text...
npm WARN package.json packages-for-meteor-smartpackage-9t1t7p#0.0.0 No
description
npm WARN package.json packages-for-meteor-smartpackage-9t1t7p#0.0.0 No
repository field.
npm WARN package.json packages-for-meteor-smartpackage-9t1t7p#0.0.0 No README
data
npm WARN engine html-to-text#0.1.0: wanted: {"node":"~0.8.0"} (current:
{"node":"0.10.36","npm":"1.4.28"})
npm ERR! Error: EACCES, mkdir
'/Users/renzzemistal/.npm/underscore.string/2.3.3'
npm ERR! { [Error: EACCES, mkdir
'/Users/renzzemistal/.npm/underscore.string/2.3.3']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/renzzemistal/.npm/underscore.string/2.3.3',
npm ERR! parent: 'html-to-text' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 14.3.0
npm ERR! command
"/Users/renzzemistal/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/renzzemistal/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
"install"
npm ERR! cwd
/Users/renzzemistal/Documents/Telescope/packages/telescope-newsletter/.npm/package-new-8pwb46
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! path /Users/renzzemistal/.npm/underscore.string/2.3.3
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir
'/Users/renzzemistal/.npm/underscore.string/2.3.3'
npm ERR! not ok code 0
telescope:post-by-feed: updating npm dependencies -- feedparser, to-markdown,
he, iconv-lite...
npm WARN package.json packages-for-meteor-smartpackage-cjzir1#0.0.0 No
description
npm WARN package.json packages-for-meteor-smartpackage-cjzir1#0.0.0 No
repository field.
npm WARN package.json packages-for-meteor-smartpackage-cjzir1#0.0.0 No README
data
npm ERR! Error: EACCES, mkdir '/Users/renzzemistal/.npm/iconv-lite/0.4.7'
npm ERR! { [Error: EACCES, mkdir '/Users/renzzemistal/.npm/iconv-lite/0.4.7']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/renzzemistal/.npm/iconv-lite/0.4.7',
npm ERR! parent: 'packages-for-meteor-smartpackage-cjzir1' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 14.3.0
npm ERR! command
"/Users/renzzemistal/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/renzzemistal/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
"install"
npm ERR! cwd
/Users/renzzemistal/Documents/Telescope/packages/telescope-post-by-feed/.npm/package-new-ah6u81
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! path /Users/renzzemistal/.npm/iconv-lite/0.4.7
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/Users/renzzemistal/.npm/iconv-lite/0.4.7'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!
/Users/renzzemistal/Documents/Telescope/packages/telescope-post-by-feed/.npm/package-new-ah6u81/npm-debug.log
npm ERR! not ok code 0
telescope:rss: updating npm dependencies -- rss...
=> Errors prevented startup:
While building package telescope:email:
error: couldn't install npm packages from npm-shrinkwrap
While building package telescope:newsletter:
error: couldn't install npm packages from npm-shrinkwrap
While building package telescope:post-by-feed:
error: couldn't install npm packages from npm-shrinkwrap
=> Your application has errors. Waiting for file change.*
Did I miss something? Or should I install it somewhere else?
Appreciate any help!
Thanks!
EACCES is a common error associated with lacking the appropriate permissions. Try running the command again as root:
sudo meteor

Using a repository as an npm dependency in meteor

I forked and changed an npm module today (node-cldr). Now I want to test if it still works with my meteor package (nemo64:translator). I found out that the less package has a way of referencing a commit on github. That did not work in my case. This is what happens if i try to run meteor test-packages ./:
npm ERR! Error: Problems were encountered
npm ERR! Please correct and try again.
npm ERR! missing: node-cldr#https://github.com/Nemo64/node-cldr/tarball/ea7e32150eb11418803760f87ff3958f569599b7, required by packages-for-meteor-smartpackage-16i2g97#0.0.0
npm ERR! extraneous: cldr#2.2.1 /data/marco/Git/meteor/nemo64:translator/.npm/plugin/language-compiler-new-ee22eu/node_modules/cldr
npm ERR! at shrinkwrap_ (/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/shrinkwrap.js:30:15)
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/shrinkwrap.js:24:5
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/ls.js:44:30
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/read-installed/read-installed.js:130:5
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/read-installed/read-installed.js:244:14
npm ERR! at cb (/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/read-installed/read-installed.js:244:14
npm ERR! at cb (/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/read-installed/read-installed.js:244:14
npm ERR! at cb (/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.13.0-32-generic
npm ERR! command "/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/node" "/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/npm" "shrinkwrap"
npm ERR! cwd /data/marco/Git/meteor/nemo64:translator/.npm/plugin/language-compiler-new-ee22eu
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /data/marco/Git/meteor/nemo64:translator/.npm/plugin/language-compiler-new-ee22eu/npm-debug.log
npm ERR! not ok code 0
=> Errors prevented startup:
While building plugin `language-compiler` in package `nemo64:translator`:
error: couldn't run `npm shrinkwrap`
Am I doing something wrong?

Ghost install npm

I get an error when I run this command:
npm install --production
Help please.
npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open '/root/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.
npm ERR! System Linux 2.6.32-042stab088.4
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /root
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.4
npm ERR! path /root/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm ERR! not ok code 0
I tried to execute the command in the directory with Ghost. And came out this error:
sqlite3#2.2.0 install /var/www/node_modules/sqlite3
node-pre-gyp install --fallback-to-build
/usr/bin/env: node: No such file or directory
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! sqlite3#2.2.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the sqlite3#2.2.0 install script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-042stab088.4
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /var/www
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/npm-debug.log
npm ERR! not ok code 0`
From your output it seems to me that you are not in the Ghost install directory. Could you please try to cd to the directory where the source of Ghost is located and run the command again?

Resources