Recently we have been tasked to move from YARN to NPM in a project that was developed a few years ago. The conversion was pretty smooth. We have noticed the following error when trying to run this script:
"start-frontend": "cd frontend && elm-app start",
The following error is returned when 'npm run start-frontend' is executed:
digital_bill#1.0.0 start-frontend /Users/xxxx/workspace/kittyworks-frontend
cd frontend && elm-app start
Failed to compile.
Cannot read property 'compilation' of undefined
There is a frontend directory as a child directory to where NPM is being run (location of package.json). If I execute these commands in terminal the command 'elm-app start' works without error once we cd into frontend.
This is running on a MAC (Catalina) with NPM 6.1.8. ELM is 0.18.
Not sure what is happening here.
Related
I ran npm run dev on the server with Laravel 9 using Vite and Tailwind. Now when I run npm run build it is still trying to load the css and javascript files from a domain 127.0.0.1. I can not get it back to reading the manifest.json in the build folder and loading those files.
npm run build runs without any errors,
however the npm run dev was throwing errors and I killed the process and double cheked using ps aux, and pkill commands.
I am lost.
nvm, for some reason the command
pkill npm
does not work I had to use
kill -9 [process-id]
and it worked.
I want to work with webpack and Laravel
I'm trying to install Mix in my Laravel project.
So i have installed node and npm succesfully.
When i run node -v and npm -v in vscode it show me the version number so i think the install is ok.
But when i go in the Laravel project directory and try to run "npm -v" or "npm install" i have a message like "npm: The term 'npm' is not recognized as the name of cmdlet, function, file
script or executable program"...
Did i do something wrong?
My bad...
I had another session of Vscode runnign on the other screen and i didnt see it.
I closed all vscode session and reboot and it work
Thank you very much!
I am using strapi in one of my projects and it is good to use but the problem is I am not able to customize the admin page. My operating system is windows 10. Whenever I make any changes in the source code and run npm run setup or npm run build on the command line to make those changes reflect in the build file, it gives the following error : 'APP_PATH' is not recognized as an internal or external command, operable program or batch file.
Has anyone came across similar issue and was able to resolve it?
I have this error too
npm run setup error 'APP_PATH' is not recognized as an internal or external command
i use windows 10 x64 and npm version 6.4.1 and MongoDB shell version v4.0.10.
I have Error on admin/scripts/setup.js.
my problem Solved by added set key to commands(two line)
" && APP_PATH="${appPath}" npm run build`
to
" && set APP_PATH="${appPath}" npm run build`
I am using the instructions given on their site for MacOS- https://ipfs.io/docs/install/#installing-with-ipfs-update
[tutorial][1]
To build demo, clone this repo and run the following command:
$ cd contracts
$ npm install
Running the demo
To run demo, first run testrpc by running:
$ testrpc
Then compile and deploy the solidity contracts:
$ truffle compile
$ truffle migrate
Run an instance of IPFS to enable uploads:
$ ipfs daemon
Finally to build website, run:
$ npm run dev
I reached this last step (npm run dev) and I got an error message saying "npm missing scripts dev"
I am in the contracts directory specified, and installed everything there properly I believe. However, I don't see any dev script in the json package(s) which I believe could be being referenced using the npm run dev command. May this be the problem?
Here are the files wihin the folder contracts-master
app
index.html
javascripts
stylesheets
contracts
**ethpm.json** This one?
img
LICENSE
Lockup.sol
migrations
**package.json** Or this one?
Readme.md
scripts
coverage.sh
coveralls.sh
install.sh
test.sh
truffle.js
Any help / suggestions / learning resources would be appreciated.
Thanks for your time,
Elias
Your error is not because of ipfs. You are running dev mode but error saying that you don't have any scripts dev.If you are deploying smart contracts then you don't need ipfs demon. check package.json
"scripts": {
"dev": "command to run service"
}
Your package.json don't have dev scripts recheck package.json
I have to switched on the second computer which is running on Windows XP.
I clonned my project from repository, which have structure containtng bower.jcon, Gruntfile.js and other following files and is running without problems on second computer with MacOS X.
After that I launched NodeJS command promtp, moved into the directory where application was clonned and i launched commmand.
C:\workspace\myproject>grunt serve
And I got following error message:
Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'load-grunt-tasks'
Warning: Task "serve" not found. Use --force to continue.
Whhat I'm doing wrong and how can i solve this issue please?
Many thanks for any help.
EDIT:
I solved it using the following commands:
npm update npm -g
npm install
bower install
grunt serve